Strawberry Pi Greenhouse is a little project that i made in my holidays. It's a software that sends sensor data (temperature, water level) to a Homeassistants instance and can receive commands from this HA instace to control a relay.
To activate the sensors you have to add these lines to you /boot/config.txt file on your raspberry pi micro sd card. You can change the pin numbers if you want.