Problem Statement: A Cyber-Physical Control System, Not a Dashboard
Frames the greenhouse as an edge-first control platform where crop survival must not depend on cloud reachability.
Problem statement
Design an IoT-driven automated greenhouse platform that ingests sensor data from many nodes per zone — temperature, relative humidity, soil moisture, CO2, light/PAR — and drives actuators: vent fans, roof vents, water valves and pumps, nutrient dosing mixers, misting lines, and optionally shade screens and heaters. The platform runs circadian day/night schedules and threshold triggers (if humidity < X, start misting), alerts operators when conditions drift outside configured ranges, and optionally consumes weather forecasts to pre-adjust setpoints. It must scale from one greenhouse to a multi-site operation with hundreds of sites and thousands of zones.
The defining constraint is physical: crops are a slow, unforgiving workload. A web service can retry a request; a greenhouse cannot un-cook a tomato crop that sat at 42°C for forty minutes because a cloud command never arrived, and it cannot un-drown seedlings after a valve that was told to open for ten seconds stuck open for ten hours. The system therefore separates two very different obligations. Climate control is a continuous local control loop: sense, compare against setpoint, actuate, verify effect, repeat. Fleet management is an eventually-consistent coordination problem: schedules, recipes, alerts, analytics, dashboards, firmware. The first must keep working with zero connectivity; the second may lag.
Why this is distinctive
A generic IoT dashboard question treats devices as telemetry producers and the cloud as the brain. In a greenhouse, the actuators are the point, and actuation changes the physical world in ways that cannot be transactionally rolled back. Four properties shape everything:
- Multiple time constants coexist. Air temperature can spike in minutes under direct sun; humidity shifts in minutes after misting; soil moisture drifts over hours; nutrient solution EC/pH matters on the seconds-to-minutes scale during an irrigation pulse; crop-stage recipes evolve over weeks. One control cadence cannot serve all of them.
- Actuators conflict with each other. Running heaters while vents are open, or misting while exhaust fans are at full speed, wastes energy and can spread disease. Interlocks are architecture, not configuration.
- Sensors lie. They drift, they foul, they fail sticky or dead. A controller that trusts a single stuck reading will faithfully destroy the crop. Sensor trust, fusion, and disagreement handling are first-class problems.
- Rural connectivity is hostile. Greenhouses sit where land is cheap and cellular is patchy. The design must survive hours of WAN loss without human intervention.
The four architectural planes
- Edge control plane: per-site controllers running local rules, hysteresis/PID loops, actuator interlocks, watchdogs, safe states, and a cached schedule. This plane owns crop survival.
- Site coordination plane: zone-to-zone arbitration (shared water pressure, CO2 supply, electrical budget), local alerting, and operator handoff.
- Fleet/cloud plane: multi-site management, schedule and recipe authoring, alert routing, analytics, yield models, firmware OTA, and the admin console.
- Data plane: time-series telemetry, event streams, durable configuration artifacts, and the evidence store for food-safety audits.
A strong answer keeps these planes separate, lets the cloud plane degrade without weakening the edge control plane, and treats every uncited number as an explicit design assumption.
Key Highlights
- •Crop survival is owned by the local control loop; the cloud owns coordination, analytics, and lifecycle.
- •Four time constants coexist: seconds for dosing, minutes for air climate, hours for soil, weeks for crop stages.
- •Actuator conflicts (heat vs vent, mist vs fan) require interlocks as architectural invariants, not config.
- •Sensor drift and failure are normal operating conditions, so fusion and disagreement handling are first-class.
- •The system has four planes: edge control, site coordination, fleet/cloud, and data.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "Let me separate crop survival, which is a local control problem, from fleet coordination, which is an eventually-consistent cloud problem."
- "Before choosing any technology, I will define which decisions happen on the edge, which in the cloud, and which need a human."