Check this automated hydro system. It’s from the designer of a great program for the raspberry pi called Mycodo.
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.