Greenhouse and Polytunnel Automation — Climate Control for High-Value Crops
How sensors and automated ventilation keep tomatoes, capsicum, and other greenhouse crops at the temperatures and humidity that maximise yield, without you b...
Greenhouse and Polytunnel Automation — Climate Control for High-Value Crops
A Kenyan polytunnel growing tomatoes or capsicum can hit 45°C inside on a hot afternoon. The crop above 35°C is heat-stressed; flowers abort, fruit malforms, and pollination fails. The same polytunnel at 5am in the highlands can be at 8°C — too cold for active growth. Climate is the single biggest controllable factor for protected horticulture in Kenya, and it is exactly the kind of variable IoT handles well.
This post covers the realistic automation toolkit for a smallholder or mid-scale greenhouse — sensors, ventilation control, irrigation integration, and what stays manual.
What changes when the greenhouse becomes IoT-aware
Without automation:
The worker who opens and closes the side curtains decides on heat by feel
Watering happens at fixed times regardless of plant stress
You only notice a humidity problem when fungal disease becomes visible
A wind storm at 2am damages the cover before anyone arrives With automation:
Temperature stays within target via vent fans, motorised side curtains, or shade nets
Humidity is kept under fungal-disease thresholds (typically 80% RH)
Watering responds to soil moisture and forecast, not the clock
Alerts trigger before damage happens (high winds, low temp at night, etc.) The yield gain in protected horticulture is typically 15–30% under automation, plus a reduction in disease losses of similar magnitude. For a quarter-acre polytunnel of capsicum, this is KES 100,000+ per cycle.
The sensor stack for a small polytunnel
A workable monitoring sensor stack for a 200m² polytunnel:
| Sensor | Where | Cost (KES) |
|---|---|---|
| Air temperature + humidity (DHT22 or SHT35) | At plant canopy height, centre | 350–2,000 |
| Soil moisture + NPK | One per soil zone | 5,000–7,000 each |
| Light level (lux meter) | Above canopy | 800 |
| CO₂ sensor (optional for sealed greenhouses) | Centre, plant-height | 8,000–15,000 |
| Wind sensor (anemometer) | Roof or upwind edge | 4,000 |
| Rain sensor | Roof | 1,000 |
For a typical mid-scale polytunnel, the practical core is: temperature + humidity + soil moisture + light + wind. Total sensor cost around KES 12,000–15,000.
Ventilation control — the workhorse
The most useful automation in a polytunnel is automatic ventilation: opening side curtains or running fans when temperature climbs above the target.
A simple setup uses a 12V motor controlling a rolled-up plastic side curtain:
ESP32 receives temperature reading │ ▼ If temp > 28°C: open curtains (run motor for 30 seconds, then stop) If temp > 32°C: open further + start fan If wind > 25 km/h: close curtains regardless (prevent damage) If rain detected: close curtains At sunset: close curtains slowly
Motorised curtain kits cost KES 8,000–15,000 per side curtain (motor + rope + roller). For a 200m² polytunnel with two side curtains, the full motorised vent system costs around KES 25,000–35,000 including the IoT controller.
An axial fan adds another KES 4,000–8,000 plus mains wiring.
Humidity control
Humidity in a polytunnel rises when temperature drops (evening, after irrigation, after rain). High humidity for hours encourages fungal disease — botrytis, mildew, late blight on tomatoes.
The IoT controller can:
- Run fans to vent humid air when humidity exceeds 80% RH AND temperature is above 15°C
- Delay early-morning irrigation if humidity is already high
- Alert if humidity stays above 85% for more than 4 hours (fungal disease risk window) There are no cheap dehumidifiers for polytunnels; the solution is ventilation timing.
Irrigation integration
The greenhouse irrigation controller is the same one we discussed in the irrigation post — but inside a polytunnel, the rules need to account for:
- Soil dries faster (warmer, less rain reaches the soil)
- Watering during midday can scorch leaves if water splashes on them — prefer drip
- Humidity rises temporarily after watering — schedule for morning, vent afterwards A typical capsicum greenhouse needs 3–6 short irrigation cycles per day during peak fruiting. The IoT controller handles this without anyone walking in.
Safety alerts — the unglamorous ones
Polytunnels have three failure modes that automation should catch:
1. Cover damage from wind
A 50 km/h gust can rip a polytunnel cover overnight. Anemometer-triggered alerts let you reinforce or call a repair before total loss.
2. Overheating in unattended polytunnels
Holidays, sick days, family emergencies. An automatic vent system continues working. Without it, a single 45°C afternoon can destroy a crop that took 4 months to grow.
3. Water supply failure
Tank empty, pump tripped, valve stuck — irrigation does not run, plants wilt in hours under polytunnel conditions. The water-monitoring sensors we discussed in the borehole post become critical here.
Costs for a complete 200m² polytunnel automation
| Layer | Cost (KES) |
|---|---|
| Climate sensors (temp/humidity/light + brain) | 15,000 |
| Soil moisture + NPK per zone (3 zones) | 18,000 |
| Motorised side curtains (2 sides) | 30,000 |
| Wind + rain sensors | 5,000 |
| Axial vent fan + relay | 8,000 |
| Irrigation controller (already counted if installed) | 15,000 |
| Cabling, enclosures, power | 5,000 |
| Total | ~96,000 |
For a quarter-acre commercial polytunnel, this is a 1–2 cycle payback in better yield and reduced loss.
For a small homestead 50m² polytunnel, a stripped-down version with just temperature monitoring and a single vent fan can be built for KES 10,000–15,000 and still delivers most of the value.
Step-by-step deployment
- Start with monitoring only. Install temperature, humidity, soil moisture sensors. Run for one full cycle to understand your specific greenhouse's microclimate.
- Add the vent fan. Automatic on/off based on temperature alone. This handles 80% of climate problems.
- Add motorised side curtains. This handles slow, broad climate response.
- Add the irrigation integration. Connect the soil moisture readings to the irrigation controller.
- Add wind and rain sensors. Safety net for storms and equipment damage. Total time across all phases: 3–4 weekends over a season.
What stays manual
Some things cannot be sensed cheaply:
- Pest scouting (still walk the rows weekly)
- Pollination — bumblebee hives, hand pollination, or shaking
- Pruning, training, and trellising
- Disease identification at the plant level (use the disease-photo workflow)
- Harvest decisions (ripeness is visual and tactile) Automation handles climate and water. Skilled human attention handles the biology.
What to do next
If you are running a polytunnel without IoT today and trying to scale, climate automation is the project to do before you grow your operation. A second polytunnel without sensors doubles your problems. A second polytunnel with sensors lets one operator handle both.
Track yields, losses, and labour hours per polytunnel at shira.farm. After two or three cycles, you will see exactly how much the automation contributed and where the next bottleneck is.
See it in action
Tap this exact setup on our interactive visual guide — photorealistic farm scenes with clickable explainers showing what every device does, what it costs, and which Shira tier unlocks it.
Open the IoT Showcase