Source: https://randomnerdtutorials.com/guide-for-soil-moisture-sensor-yl-69-or-hl-69-with-the-arduino/
To complete the project, follow these schematics:
Plug the sensor into the soil of a thirsty plant: light is RED.
Poor some fresh (but not too much) water:
Led will pass to green: