Check this automated hydro system. It’s from the designer of a great program for the raspberry pi called Mycodo.
https://kylegabriel.com/projects/2020/06/automated-hydroponic-system-build.html
I am running Mycodo myself with the pi camera, temp/humidity sensor inside the tent and one in my basement. I also have my lights being controlled as well. Its not nearly complicated as the above project but it’s a start.