Irrigation & water8 min read

IoT in Smart Agriculture: Sensors, Controllers and Use Cases

How IoT sensors, networks and controllers turn farm data into automatic irrigation, climate and dosing decisions, with use cases and a step-by-step plan for growers.

By Mars Vertical Farm Engineering TeamPublished

IoT in Smart Agriculture: Sensors, Controllers and Use Cases — illustrative image

Short answer

IoT in smart agriculture is the use of connected sensors, controllers and software to monitor crops, soil, climate and water in real time and to act automatically or remotely. A typical system links soil moisture, temperature, humidity, CO2, light, EC and pH sensors through LoRaWAN, cellular, Wi-Fi or wired Modbus networks to a controller that switches valves, pumps, fans, lights and dosing equipment.

What is IoT in smart agriculture?

IoT in smart agriculture means using connected sensors, controllers and software, the Internet of Things, to measure field, greenhouse or indoor farm conditions in real time and act on them automatically or remotely. Typical systems monitor soil moisture, climate, water and nutrients, then switch irrigation valves, fans, lights or dosing pumps based on rules or a grower's decision.

Smart farming is the broader idea of running a farm on data instead of fixed routines; IoT is the hardware and network layer that makes it possible. Smart agriculture using IoT applies equally to open fields, orchards, greenhouses, container farms and livestock barns, although the sensors and networks differ. This guide explains how agriculture IoT systems are built, which IoT sensors in agriculture matter most, how devices communicate, practical use cases in irrigation and controlled-environment farming, and how to plan a rollout. If you only need an irrigation timer upgrade, start with our smart irrigation controller guide; this article covers the whole farm system.

How does an agriculture IoT system work?

An agriculture IoT system, or smart agriculture system, works in layers: sensors collect data, a network carries it, a gateway or controller processes it, a cloud or local platform stores and displays it, and actuators carry out decisions. Each layer can come from different suppliers, so open protocols matter.

  1. Sensing. Battery or mains-powered sensors measure variables such as soil water content, air temperature and relative humidity, CO2, light, electrical conductivity (EC) and pH.
  2. Connectivity. Data travels by wired fieldbus such as RS485/Modbus, short-range radio such as Wi-Fi, Zigbee or Bluetooth, long-range radio such as LoRaWAN, or cellular networks such as NB-IoT, LTE-M and 4G.
  3. Edge control. A gateway, PLC (programmable logic controller) or climate computer on site runs control loops. Critical functions, such as closing vents in a storm, should keep working if the internet connection drops.
  4. Platform. A cloud or on-premise dashboard logs data, sends alarms by app, SMS or email, and lets managers adjust setpoints remotely.
  5. Actuation. Relays and drivers switch pumps, solenoid valves, fans, heaters, screens, LED lights and dosing equipment.

The value comes from closing the loop: a sensor reading triggers a defined action, and the result is logged so the grower can refine the rule.

Which IoT sensors are used in agriculture?

The most useful smart agriculture sensors are those tied directly to a decision you make every day, such as when to irrigate, when to ventilate or when to change a nutrient solution. The table lists common sensors for smart farming and what they drive.

SensorMeasuresTypical decisionWhere used
Soil moisture (capacitance, TDR, tensiometer)Volumetric water content or soil water tensionStart or stop irrigationFields, orchards, substrate slabs
Air temperature and relative humidity°C (°F) and % RH, from which VPD is calculatedVentilation, heating, dehumidificationGreenhouses, indoor farms, storage
CO2ppmCO2 enrichment, ventilationGreenhouses, plant factories, mushroom rooms
Light (PAR quantum sensor, solar radiation)µmol/m²/s or W/m²Supplemental lighting, shade screens, radiation-based irrigationGreenhouses, vertical farms
EC and pH probesmS/cm and pHFertilizer and acid dosingFertigation heads, hydroponic tanks
Water level, flow and pressureLevel, L/min, barTank refill, leak and clog alarmsIrrigation heads, reservoirs
Weather stationRain, wind, solar radiation, temperatureIrrigation scheduling, vent and screen protectionFarms, greenhouse roofs
Insect monitoring lamp or trap cameraInsect counts and imagesSpray timing, pest alertsOrchards, fields, greenhouses

Soil sensors deserve their own planning because placement, depth and calibration decide whether the data is trustworthy; our guide to soil moisture sensors for irrigation covers that in detail.

How do farm IoT devices communicate?

Farm IoT devices communicate over the network that matches their distance, data volume and power supply. Long distances and battery power favor low-power wide-area networks; greenhouses and indoor farms with mains power usually favor wired buses or Wi-Fi.

  • LoRaWAN: low power and long range, often several kilometers in open rural terrain, with sensor batteries lasting years. Data rates are small, which is fine for readings every 5–15 minutes. You install your own gateway or use a public network where available.
  • NB-IoT and LTE-M: cellular low-power networks that need no private gateway but depend on operator coverage and a SIM subscription per device.
  • 4G/5G cellular routers: for gateways, cameras and controllers that send more data.
  • Wi-Fi, Zigbee and Bluetooth: short range, suited to grow rooms, container farms and packing areas.
  • RS485/Modbus and Ethernet: wired and robust, the standard inside greenhouses, fertigation machines and plant factories where many devices sit close together.

Ask any provider of IoT farming solutions which protocols the hardware supports and whether you can export raw data. Lock-in to one closed app is a common regret.

What are the main IoT use cases in farming?

The smart agriculture solutions that pay back fastest usually save water, fertilizer, labor or crop losses in an operation that already has the equipment to act on the data. These are the most common applications we see.

Irrigation and fertigation

Soil moisture, weather and flow data schedule irrigation by actual need, while EC and pH sensors control fertilizer injection. Flow and pressure alarms catch burst pipes and clogged filters early. Our IoT digital irrigation system combines valves, sensors and remote control; for injector sizing see how to size a fertigation system.

Greenhouse climate control

Temperature, humidity, CO2 and radiation sensors drive roof vents, side vents, screens, fans and heating. Remote alarms for high temperature or power failure can save a crop overnight.

Container farms and plant factories

Fully enclosed farms depend on automated farming: LED photoperiods, HVAC and dehumidification, nutrient dosing and water level are all controlled and logged. Growers can manage several sites from one dashboard. See indoor farm HVAC and dehumidification for the climate side.

Pest monitoring

Solar insect-monitoring lamps count and photograph trapped insects and upload images, giving early warning of pest flights across large orchards and fields. Our solar insect-killing lamp guide explains coverage and placement.

Water, storage and livestock

Tank level sensors, cold room temperature loggers and automated hydroponic fodder systems are simple, high-value IoT devices for agriculture that reduce daily site visits.

Smart farming vs precision farming: what is the difference?

Precision farming manages variability within a field, applying water, seed or fertilizer at different rates zone by zone, often guided by GPS, yield maps and satellite or drone imagery. Smart farming is the wider umbrella that includes precision farming plus connected controls, automation, remote monitoring and farm management software.

In greenhouses and indoor farms, precision looks different: the "zones" are benches, rooms or rack levels, and precision means holding each climate and nutrient setpoint tightly. The same data principles apply, and many farm software platforms now cover both outdoor and protected cropping.

How do you implement IoT on a farm?

Implementing IoT works best as a staged project that starts with one clear problem and expands once the data proves useful. A typical sequence looks like this.

  1. Define the decision. For example, "irrigate each zone only when substrate moisture drops below a set point" or "alarm if a container farm exceeds 28°C (82°F)".
  2. Audit existing equipment. List pumps, valves, fans and controllers, their voltages and whether they accept relay, 0–10 V or Modbus control.
  3. Choose sensors and placement. Place enough sensors to represent each zone, away from heaters, doors and direct spray.
  4. Select the network. Match LoRaWAN, cellular, Wi-Fi or wired links to distance and power availability, and check coverage on site.
  5. Keep local control. Make sure critical loops run on the on-site controller with safe defaults if communication fails.
  6. Calibrate and validate. Calibrate EC, pH and moisture sensors at installation, then on a schedule, and compare readings with handheld meters.
  7. Set alarms and roles. Decide who receives which alarm and what they must do.
  8. Review and expand. After a season, compare water, fertilizer, energy and labor with previous records and extend to the next zone.

How do you keep track of farm data and expenses?

Farm data becomes valuable when sensor logs connect with business records such as inputs, labor, harvests and sales. Many growers start by keeping track of farm expenses in a spreadsheet or a farm expense tracker app, then move to farm management or farm inventory software that records fertilizer stock, seed lots, harvest batches and costs per crop.

When choosing software or a technology supplier, check that it can import data from your controllers, export to common formats, and assign costs per zone or crop. Also budget for the ongoing costs that are easy to overlook: SIM or network fees, cloud subscriptions, battery replacement, sensor recalibration and spare probes. EC and pH probes, for example, are consumables that typically need replacement every one to two years depending on use.

Common mistakes with IoT in farming include installing too few sensors to represent the crop, ignoring calibration, relying on cloud-only control and collecting data no one reviews. Security matters too: change default passwords, keep firmware updated and separate farm control networks from guest Wi-Fi.

Next steps

IoT in smart agriculture delivers the most when it is built into the equipment from the start: fertigation machines, greenhouses, container farms and pest lamps that already speak open protocols and share one dashboard. Mars Vertical Farm supplies IoT-ready irrigation heads, plant factories such as our automated container plant factory with IoT sensor control and solar pest-monitoring lamps, factory-direct with custom sensor and control configurations. Tell us your crop, site and what you want to automate, and our engineers will suggest a practical system.

Mars Vertical Farm Engineering Team

Systems engineering, Shanghai. Written by the engineers and project managers who design and ship Mars Vertical Farm systems. Ask the author

FAQ

Frequently asked questions

Can't find your answer? Our engineers reply within one business day.

Ask a question
What is IoT in agriculture?

IoT in agriculture is the network of connected sensors, controllers and machines on a farm that collect data and act on it. Examples include soil moisture sensors that trigger irrigation, greenhouse climate sensors that open vents, EC and pH probes that control fertilizer dosing, and insect-monitoring lamps that upload pest counts to an app.

What are the benefits of smart farming?

Smart farming helps growers apply water, fertilizer and energy only where and when crops need them, catch problems such as leaks, heat or pests earlier, and reduce routine site visits. It also creates records for traceability and planning. Actual savings depend on the crop, the existing equipment and how consistently the data is used.

Which sensors are used in smart agriculture?

The most common smart agriculture sensors measure soil moisture, air temperature and relative humidity, CO2, light or solar radiation, EC and pH of nutrient solution, water level, flow and pressure. Weather stations and insect-monitoring traps are also widely used. Choose sensors that drive a specific decision rather than collecting data for its own sake.

How does IoT help irrigation?

IoT irrigation uses soil moisture, weather and evapotranspiration data to start and stop watering by actual crop demand instead of fixed timers. Flow and pressure sensors detect leaks and clogged filters, and EC and pH sensors control fertigation. Growers can check and adjust every zone remotely and receive alarms when something goes wrong.

What is the difference between smart farming and precision farming?

Precision farming manages variation inside a field, applying inputs at different rates by zone using GPS, yield maps and imagery. Smart farming is broader: it includes precision farming plus connected sensors, automated controls, remote monitoring and farm management software across fields, greenhouses, indoor farms and livestock operations.

Which network is best for farm IoT sensors?

It depends on distance and power. LoRaWAN offers long range and multi-year battery life for sensors spread across fields. NB-IoT and LTE-M work without a private gateway where cellular coverage exists. Wired RS485 Modbus, Ethernet and Wi-Fi are more practical inside greenhouses, container farms and plant factories with mains power.

How do you keep track of farm expenses?

Start by recording every input, labor hour, harvest and sale by crop or zone, either in a spreadsheet or a farm expense tracker app. As the operation grows, farm management or inventory software can link those records with sensor and controller data, showing water, fertilizer and energy costs per batch so you can compare crops and seasons.

Equipment

Products mentioned

Get a quotation

Get advice for your project

Crop, site and rough size are enough to start. You'll hear from an engineer within one business day, Shanghai time.

  • Itemized quotation in USD with lead time
  • Layout drawings for custom systems
  • Factory inspection or video call on request
  • Export packing and shipping documents

Prefer email? inquiry@marsverticalfarm.com

Request a quotation

We reply within one business day with questions or an itemized quotation.