Agritech IoT has moved past the demo stage. Real farms are running sensor networks, automated irrigation, and edge analytics in production โ with the failure modes, power constraints, and connectivity headaches that come with field deployments. This is a practitioner's view of what the architecture actually looks like, what works, and where the honest tradeoffs are.


Production agritech IoT systems share a common structural pattern regardless of the specific application โ irrigation, weather monitoring, crop health, or livestock management. Understanding that pattern helps you evaluate any specific implementation against the real engineering constraints.
Irrigation is the highest-leverage agritech IoT use case for most farms. Water is expensive โ in energy cost, in direct cost where purchased, and in regulatory cost in water-stressed regions with allocation limits. Over-irrigation causes waterlogging and root damage. Under-irrigation reduces yield. Schedule-based irrigation ignores actual soil conditions and weather. Sensor-driven irrigation closes that loop: the system irrigates when and where the soil needs it, not on a fixed timer.
The architecture follows a straightforward pattern: distributed soil moisture sensors in the field read moisture levels at regular intervals and transmit readings to a central unit via the chosen wireless protocol. The central unit runs decision logic โ when any zone's moisture reading falls below a configured threshold, the corresponding valve or pump is triggered. Readings from multiple depths and multiple spatial positions give a more accurate picture of actual field conditions than a single sensor point.
Deployed at the root depth relevant to the crop. Multiple nodes per irrigation zone to account for spatial variation. Capacitive sensors preferred over resistive for field longevity โ resistive probes corrode within weeks in wet soil.
LoRa for fields where range exceeds WiFi coverage or cellular is unavailable. WiFi where infrastructure exists and distances are manageable. The protocol choice affects node power budget, gateway hardware, and the range achievable without repeaters.
Aggregates readings, applies zone-level thresholds, triggers valve/pump actuators. Logic runs locally so irrigation decisions continue during internet outages. Remote override and monitoring via cloud dashboard when connected.
Relay modules or dedicated actuator boards controlled by the gateway. Solenoid valves for zone-level control; pump control for pressurisation where needed. Feedback confirmation (flow sensors, valve position sensors) adds reliability โ a valve that fails open or closed should not go undetected.
We built exactly this system in our irrigation monitor โ a complete ESP32-based smart irrigation deployment. The architecture uses ESP32 sensor nodes configured as slave units, distributed across the field and measuring soil moisture and related parameters. A Raspberry Pi serves as the central unit: aggregating readings from all nodes, running the irrigation decision logic, and driving the output controls. The custom PCB for the sensor nodes was designed and fabricated in-house by DigitalMonk, purpose-built for the form factor and power requirements of field-deployed nodes.
Our Raspberry Pi developers with edge experience handled the gateway software โ data aggregation, threshold logic, cloud uplink, and the web dashboard for remote monitoring and manual override.
| Decision | Options | Honest Tradeoff |
|---|---|---|
| Wireless protocol | LoRa / WiFi / Cellular | LoRa: best range and power, requires gateway radio, no internet without additional uplink. WiFi: familiar stack, limited range (~50m outdoors reliably). Cellular (LTE-M/NB-IoT): coverage-dependent, ongoing SIM cost. |
| Node power | Solar+battery / Mains / Primary battery | Solar+battery requires careful sizing; fails in extended cloudy periods if undersized. Mains removes the problem but limits placement. Primary battery is simple but requires replacement scheduling. |
| Sensor calibration | Factory-cal / Field-cal / Uncalibrated | All soil moisture sensors drift in the field. Calibration against gravimetric measurements at your specific soil type is worth the effort for anything beyond relative readings. Uncalibrated sensors give unreliable absolute moisture values. |
| Decision logic location | Local / Cloud / Hybrid | Cloud-only control fails when connectivity drops โ the system goes dark at exactly the moments weather is worst. Local logic is the safe default; cloud is for visibility and remote override. |
Soil moisture is the most deployed sensor parameter, but a complete soil monitoring system covers additional dimensions that affect crop health and input efficiency.
Affects germination rates, root activity, and nutrient uptake. Useful for scheduling planting and identifying frost risk at root depth. DS18B20 and similar waterproof probes are well-suited to field deployment.
Proxy for dissolved salts and fertiliser concentration. High EC can indicate over-fertilisation or salinisation; low EC can indicate nutrient depletion. Combined with moisture, EC gives a more complete picture of soil health than moisture alone.
Affects nutrient availability. pH outside the optimal range for a crop reduces uptake of specific nutrients even when those nutrients are present in the soil. pH sensors for continuous in-field monitoring exist but require regular maintenance and calibration.
Consumer-grade NPK sensors exist but accuracy is limited. For precision nutrient management, laboratory soil testing remains more reliable. In-field NPK sensing is an active area of development; treat current consumer devices as indicative rather than quantitative.
Soil monitoring generates time-series data that requires appropriate storage and visualisation. Time-series databases like InfluxDB handle high-frequency sensor writes efficiently and provide good query performance for trend analysis. Alert thresholds should be configurable per zone and per crop stage โ a seedling needs different soil moisture thresholds than a mature plant mid-growing-season.
The gateway-versus-cloud decision for data processing follows the same principle as irrigation control: anything that needs to work during connectivity loss (alerts, decisions, local logging) belongs on the gateway. Trend analysis, historical comparisons, and multi-farm aggregation are appropriate for cloud. Avoid architecting systems where the gateway becomes a dumb relay that cannot function without a cloud connection.
"Crop analytics" covers a range of applications: leaf health and disease detection, growth-stage tracking, yield prediction, and weed identification. The computer vision layer is what makes real-time crop monitoring practical at field scale โ cameras on fixed mounts, on drones, or on ground vehicles provide image data that edge or cloud pipelines process to detect issues early enough to act on.
A Raspberry Pi 4 or Pi 5 with a camera module is a viable platform for real-time crop image analysis. YOLO-based object detection models โ particularly compact variants like YOLOv8n or YOLOv5s โ run at useful inference rates on Pi hardware when processing still frames or low-frame-rate video. OpenCV handles preprocessing pipelines (colour normalisation, region extraction, image segmentation) efficiently. This architecture keeps inference latency low, removes the round-trip to cloud for latency-sensitive detection, and keeps sensitive crop data on-premises.
The honest constraint: model accuracy for crop disease detection varies substantially by crop species, disease type, and lighting conditions. Models trained on curated datasets often perform significantly worse in real field conditions โ variable natural light, wind-induced motion blur, overlapping leaves, soil splatter on foliage. Expect an iteration cycle between field-captured data and model retraining before production accuracy is reliable for your specific deployment context.
Beyond our irrigation monitor, we've built weather stations, crop image-analysis systems (using YOLO and OpenCV on Raspberry Pi for leaf-health detection), cattle collars for livestock management, and an automated sheep counter โ case studies for these are being published soon.
| Application | Approach | Maturity |
|---|---|---|
| Leaf disease detection | CNN / YOLO classification on leaf images | Works well for well-studied diseases on major crops with good training data. Accuracy drops significantly for novel diseases or species with limited datasets. |
| Growth stage tracking | Image-based stage classification or NDVI from multispectral imaging | NDVI from multispectral cameras is established and reliable. RGB-based growth staging is crop-specific and requires training data. |
| Weed detection | Object detection on field images | Improving, but weed-crop discrimination in early growth stages remains difficult. Most reliable in well-defined rows where out-of-row vegetation is definitionally weed. |
| Yield prediction | ML regression combining sensor data, weather, historical yield | Reasonable accuracy at field scale with multiple seasons of training data. Unreliable in novel conditions or early in a deployment lifecycle. |
Common patterns and the tradeoffs worth understanding before you lock in a design.
LoRa/LoRaWAN is the default choice for fields where distances exceed WiFi range and cellular coverage is unreliable. A single LoRa gateway can cover several kilometres in open terrain with nodes consuming milliamps during active transmission and microamps in sleep. The tradeoff: low bandwidth (suitable for sensor readings, not image data), requires a dedicated gateway radio, and LoRaWAN network infrastructure if using public networks. WiFi is simpler to integrate and familiar, but outdoor range is limited and power consumption is significantly higher than LoRa for battery nodes. Cellular (LTE-M or NB-IoT) works where coverage exists and removes the gateway-as-radio-hub dependency, but adds per-device SIM cost and ongoing data plan management.
An ESP32 node in deep sleep consumes roughly 10โ50ฮผA. Active transmission can draw 200โ400mA for 100msโ500ms per reading cycle. At one reading per 15 minutes, the daily energy budget is small enough that a 6V/2W solar panel with a 2000mAh battery is adequate for most latitudes โ but this sizing assumes good panel orientation, no shading, and accounts for the worst-case solar season. Size for the worst month, not the average. A 1-2 week autonomy without sun is a reasonable target buffer for a robust deployment.
Cloud-first architectures (gateway as dumb relay, all logic in the cloud) are simpler to build but brittle in field conditions. Local-first (gateway stores, makes decisions, syncs to cloud when connected) is more complex to architect but far more reliable when connectivity is intermittent. The gateway should be able to run autonomously for days or weeks, buffering data locally and syncing when the connection is available. Most field deployments with connectivity problems that "couldn't be solved" turn out to be cloud-dependent architectures that need to be rebuilt as local-first.
A farm covering 100 hectares might need dozens or hundreds of sensor nodes to achieve useful spatial coverage. At that scale, per-node cost becomes a real constraint. An ESP32 module costs a few dollars; a custom PCB replacing a development board reduces per-unit cost and improves ruggedization at volume. Enclosures, cables, mounting hardware, and installation labour often exceed the electronics cost at real deployment scales. Cost is an architectural input, not an afterthought โ designs that require expensive hardware to deploy at the density needed for accurate spatial sensing will not scale to actual farm economics.
A single expensive, feature-rich sensor node at the centre of a field tells you what's happening at that one point. Soil conditions vary spatially in ways a single sensor cannot capture. Six cheap nodes give more useful data than one sophisticated one.
Solar works until it doesn't โ extended cloud cover, panel shading from growing crops, dust accumulation, or incorrect orientation. Undersized batteries mean the system fails in exactly the extended-bad-weather periods when you most need data. Size for worst-case, not average.
If your irrigation system requires a live internet connection to decide whether to water, it will fail during network outages โ which occur during storms, exactly when field conditions are changing fastest. Decision logic belongs on the gateway.
A system that works reliably in a controlled garden test often fails in real field conditions. Variable soil types, machinery vibration, animal interference, extreme temperatures, and UV exposure reveal failure modes that don't appear in a two-week controlled trial. Field testing at the real deployment site is not optional.
Devices break, batteries degrade, sensors drift, cables get damaged. A system with no health monitoring (missing-reading alerts, battery level reporting, node connectivity status) will silently produce bad data or no data. Maintenance access matters โ sensor nodes buried deeply or in hard-to-reach locations are nodes that won't get serviced.
A complex web dashboard requiring a laptop and always-on connectivity is not useful to a farm manager in the field. Dashboards need to work on a phone with a poor signal, show the key decision-relevant numbers immediately, and generate push alerts rather than requiring the user to actively check. Build for how the actual operator works, not for how the developer tests.
We work across the full agritech IoT stack, from the sensor node outward. Our work includes ESP32 firmware for field-deployed sensor nodes, Raspberry Pi gateway software with local decision logic and edge analytics, custom PCB design and fabrication for production-volume field hardware, computer vision pipelines using YOLO and OpenCV for crop health analysis, and cloud integration for dashboards and remote monitoring. The irrigation monitor is a shipped, real-hardware deployment โ not a reference architecture or a demo.
Beyond irrigation, our agritech IoT capability includes weather stations, crop image analysis, livestock management hardware (cattle collars, automated sheep counter), and field sensor networks of various types. We understand field deployment constraints โ power budgets, connectivity limits, ruggedization requirements, and the maintenance realities of devices that need to operate reliably outdoors for years.
For a broader view of our IoT engineering work, our IoT development capability page covers the full scope of what we build.
Whether you're starting from a concept or working to scale a prototype into a production deployment, we can help with the hardware, firmware, gateways, and analytics stack. Talk to our engineering team about what you're building.
Explore Our IoT Services