The plant is the schedule
A timer waters the same amount in the rain and in a heatwave. A controller that reads the room can do better: it measures the water actually available to the roots, the light the canopy received, and the vapour-pressure deficit that drives transpiration — then doses to the demand.
The same controller holds the climate: it opens vents before the room overheats, runs the fan when humidity climbs, and protects the crop from frost with a staged heat ramp rather than a single on/off switch.
Four loops, one controller
- Irrigation. Volumetric water content per zone, dosed in litres and proven by flow.
- Climate. Temperature and humidity combined into VPD, with vent, fan and heat stages.
- Light. Daily light integral from the lux sensor, with supplemental light only when the target is short.
- CO₂. Enrichment only while the vents are closed and the room is occupied by plants, not by people.
Each loop has a manual override on the panel, a visible state and a log. Automation that cannot be overridden is a trap.
The failures that kill a crop.
Each one has a sensor and a rule that acts before the damage is visible.
Pump dry run
Float switch low plus no flow within 8 seconds: stop the pump and latch. The seal survives, and the log says which condition stopped it.
Broken line
Commanded zone with zero flow, or flow far above the learned band: close that zone valve and alarm. The other zones keep watering.
Frost
Outside temperature approaching the crop limit: stage heat, close vents, and send an alert with the trend, not a single number.
Heat spike
Canopy temperature above the limit with vents already open: start the fan, shade if fitted, and alarm. Never wait for the air sensor alone.
Sensor failure
An out-of-range or frozen reading is treated as a fault, not as data. The loop falls back to a safe schedule and says so.
Power cut
Valves fail closed, the controller keeps time on a battery-backed clock, and the schedule resumes with a catch-up dose, not a double dose.
What this build listens to.
Capacitive soil moisture
Volumetric water content per zone, calibrated in the actual medium. 0.1 % resolution, ±3 % after calibration.
Temperature & humidity
Canopy and root-zone temperature with capacitive humidity, combined into vapour-pressure deficit.
Ambient light
Daily light integral from a lux sensor behind a diffuser, used to scale irrigation and supplemental light.
Turbine flow
Litres per zone, with a no-flow timeout that protects the pump and finds a broken line.
Float switch
Tank low and tank overflow as two independent signals, never one.
Rain gauge & wind
Suspend irrigation after real rain; close vents or retract shading before wind damage.
This pattern is reusable.
The same controller, rules and record serve a grow room, a machine, a pump station or a cold room. The sensors and the action change.