ESP32 Moisture Sensor

Looking to put together a Soil Moisture sensor for the garden. Currently have an ESP32 and a Capacitive Soil Moisture Sensor v1.2. Found some code that allows me to read a voltage once a second from sensor and it works PERFECTLY. Just cannot figure out how to integrate into Home Assistant// yaml code. I’d appreciate any help, recommendations or guidance as to where I might find additional information. Thanks in advance.