Pieter, you are a legend my friend. I've been reading about the esp8266 and this is exactly what I need. I still have to look up and compare specs when I have time, but I may go for the esp8266-12e as someone has recommend it over the esp8266. Still investigating.
Ricky, it's not a "greenhouse", more like a "greenbox". Should have explained better. It is a 1.2m x 06.m x 1.8m (h) heavy duty shelf I have added panels to. The total volume is 1.296m^3, not too massive.
The box has some serious lighting in it - Dimlux Dual 315W CMH. I expect I'll need to get rid of heat before I worry about increasing temps, but I can already control the latter with the fan I have. If it gets too cold, that's when I have a problem. I may get a larger tube heater (I will measure temps before committing to anything to figure out what I need), but the tubular shape is easier to fit.
Also, this is in a shed. The shed gets hot in summer and cool in winter. My plan is to independently measure and control the temp of the shed with a more powerful heater / fan system, acting as a buffer for air temp/humidity before it reaches the box.
Most of my stuff is hydroponics, using an airpot (with coco coir) sat in a tubtrug. I did look at those moisture sensors, they may work. I read however that someone took continuous measurements with one and it lead to deterioration of the anode or cathode. That was in soil, I expect hydroponics solution will do that faster because of all the salts.
Not sure if you know how the "top fed drain to waste" hydroponics works, but basically you water the coco coir slowly and wait for about 10% of the volume of the pot (mine are 30L, so 3L) to come out of the bottom. Then you measure the EC/pH of that 10% and chuck it.
What I was hoping to do is have a button I press to start the water process (pump in a nearby water tank) and record the time I did it (so that I can just program it in later). Each time I press the button, water should pump until I get 10% run off, which I was going to measure with a ultrasonic sensor. When I press the button, the sensor should do a measure (which will be the base of the tubtrug), take this as "0", and then at intervals remeasure until it measure a preset difference in height (when water level rises). Then it should open a valve, which drains into another tank to be used later (tank is on a lower level, so just need gravity).
Maybe what I should do (to fully automate it) is use that moisture sensor to take a measure every 30mins. If the medium is dry, it starts the process above (pump and ultrasonic sensor), then doesn't take a measure for at least 3 hours.
I am still trying to figure out the most effective way of automatically checking EC/pH at 2 or more points (from the nutrient tank, and of the run off). They suffer the same problem of salt build up I understand.
Like the look of those humidity/temp sensors, thanks for the tip!