
From Prototype to Production: Scaling an IoT Greenhouse
By LoopString Team
Every large IoT deployment started as a small experiment. This is the story of how a greenhouse grower went from one Raspberry Pi on the free tier to a 10-device commercial monitoring and control system — and the decisions made at each step.
Phase 1: The Prototype (Free Tier)
The grower started with a single greenhouse bay growing tomatoes. The monitoring was manual: a min/max thermometer and a hygrometer checked twice daily.
The first LoopString setup was simple:
Hardware:
- 1 Raspberry Pi 4
- 1 BME280 (temperature, humidity, pressure)
- 1 DS18B20 soil temperature probe
- 1 light sensor (BH1750)
LoopString tier: Free (1 device, 8 sensor slots) Sensor slots used: 5 of 8 (3 from BME280 + soil temp + light) Monthly cost: $0
What it proved:
- The greenhouse hit 45C on sunny afternoons — much hotter than expected
- Humidity dropped to 30% when the vents opened — stressing the plants
- Soil temperature lagged air temperature by 3-4 hours
- The daily temperature swing was 20C+ without climate control
This data justified the investment in automation. The free tier paid for itself immediately by quantifying problems the grower only suspected.
Phase 2: Adding Control (Starter Tier)
With data proving the climate problems, the grower added actuators:
Added hardware:
- 2x relay modules (vent actuator + shade cloth motor)
- 1 MH-Z19B CO2 sensor (CO2 enrichment tracking)
- Second Pi for a separate propagation house
LoopString tier: Starter ($7/month, 2 devices, 16 sensor slots) Sensor slots used: 11 of 16 Monthly cost: $7
New capabilities:
- Automated vent opening based on temperature thresholds
- Shade cloth deployment when light levels exceeded 80,000 lux
- CO2 monitoring to optimize ventilation timing
- Propagation house monitored separately with its own dashboard room
Key decision: The grower chose hysteresis control (on/off with dead-band) instead of PID for the vents. Greenhouse vents are either open or closed — there is no proportional control. The 2C dead-band prevented rapid cycling that would wear out the vent motors.
Phase 3: PID Climate Control (Maker Tier)
The operation expanded to 4 greenhouse bays. Each bay needed independent climate control.
Added hardware:
- 3 more Raspberry Pis (one per new bay)
- DS18B20 probes for each bay
- BME280 sensors for each bay
- Heating mats with relay control
- Drip irrigation solenoid valves
LoopString tier: Maker ($15/month, 5 devices, 50 sensor slots) Sensor slots used: 35 of 50 Monthly cost: $15
New capabilities:
- PID temperature control for heating mats in the propagation house
- Scheduled irrigation based on time-of-day rules
- Multi-bay dashboard with room tabs per greenhouse bay
- Alert thresholds for frost warnings (critical below 5C)
- Analytics comparing bay-to-bay performance
Key decision: PID was used only for the propagation house heating mats, where precise temperature control (21C +/- 0.5C) was critical for seed germination. The production bays used simpler hysteresis control because the thermal mass of a large greenhouse makes tight PID control unnecessary.
Phase 4: Commercial Scale (Pro Tier)
The business grew to 10 greenhouse bays plus a packing shed and equipment room.
Full deployment:
- 10 Raspberry Pis (one per bay, one for packing, one for equipment)
- 60+ sensor signals across all devices
- Automated climate control in every bay
- Irrigation scheduling per crop type
- Equipment room monitoring (compressor, boiler, water tank)
LoopString tier: Pro ($29/month, 15 devices, 200 sensor slots) Sensor slots used: ~65 of 200 Monthly cost: $29
New capabilities:
- Device groups — "Production Bays" group for quick fleet overview
- Shared dashboards — Staff check conditions from their phones without logging in
- Multi-Pi mesh — The equipment room Pi coordinates with bay Pis for central heating decisions
- Duty cycle tracking — Monitoring irrigation valve runtime for maintenance scheduling
- Anomaly detection — Caught a failing heater element before crop damage occurred
Scaling Lessons
Start Small and Prove Value
The free tier was critical. It let the grower prove the concept without any financial commitment. The data from Phase 1 justified every subsequent investment.
Let the Data Drive Upgrades
Each tier upgrade was driven by a specific need:
- Free to Starter: Needed a second device and actuator control
- Starter to Maker: Needed PID and more devices
- Maker to Pro: Needed fleet management and mesh coordination
The grower never paid for capacity they did not use. Each tier matched the operation's actual scale.
Standardize Your Sensor Layout
By Phase 3, the grower had developed a standard sensor package per bay:
- 1 BME280 (ambient)
- 1 DS18B20 (soil/substrate)
- 1 light sensor
- 2 relay channels (vent + irrigation)
This standard layout made adding new bays fast. Create a room in the Configurator, add the standard parts, deploy. 15 minutes per bay.
Use Templates
The Greenhouse template in LoopString's Configurator was the starting point for every bay after Phase 2. Customize the GPIO pins and alarm thresholds, deploy. No need to rebuild from scratch.
PID Is Not Always the Answer
PID control is powerful but not always necessary. Greenhouse vents, irrigation valves, and shade cloths are binary (on/off). Hysteresis control is simpler, more reliable, and easier to tune for these actuators. Reserve PID for processes where proportional output matters (heating, cooling, dosing).
Alerts Prevent Crop Loss
The grower estimated that LoopString alerts prevented two crop-loss events in the first year:
- Frost warning — Temperature dropping through 5C at 3 AM triggered an SMS. Grower turned on emergency heaters remotely.
- Failed irrigation valve — Duty cycle tracking showed one valve had not opened in 48 hours. Replaced before the crop wilted.
At $29/month, the monitoring system paid for years of subscription in a single prevented incident.
Cost Summary Across Phases
- Phase 1 (Free): $0/month, 1 Pi, monitoring only
- Phase 2 (Starter): $7/month, 2 Pis, basic control
- Phase 3 (Maker): $15/month, 5 Pis, PID + multi-bay
- Phase 4 (Pro): $29/month, 10 Pis, fleet management
The total LoopString cost over the first year was approximately $250 in subscription fees. The hardware across all phases was approximately $800. Combined, $1,050 for a 10-bay commercial monitoring and control system.
A commercial greenhouse monitoring system with comparable sensor coverage would cost $5,000-15,000 upfront plus ongoing support fees.
Start Your Own Journey
Create a free LoopString account and start with one sensor in one greenhouse. The free tier is not a trial — it is a permanent plan with real capabilities. When you need more, upgrade. When you do not, stay free.
The Configurator includes a Greenhouse template that pre-configures a standard monitoring and control setup. Flash a Pi, claim it, deploy the template, and you have a working greenhouse monitor in 30 minutes.