Built to order

LoRa-Based Soil NPK Sensing Node for Precision Farming

This project builds a LoRa-based soil NPK sensing node that measures nitrogen, phosphorus and potassium in the field and sends the readings over LoRa to a cloud dashboard for precision farming. An RS485 NPK probe plus soil moisture and temperature sensors feed an ESP32 node, which sends readings through an SX1278 LoRa radio to a gateway and on to the dashboard. Nutrient trends per plot guide fertiliser use from measured data, not guesswork. Suitable for B.E./B.Tech final-year projects in IoT & Embedded, Electronics & Telecommunication and Electrical Engineering.

Chat on WhatsApp — get a quotation

IoT & Embedded ESP32MQTT cloud dashboardArduino IDE · C++RS485 NPK probe Modbus RTUSX1278 LoRa radio 433 MHzMAX485 transceiverCapacitive soil moisture sensor DS18B20Hybrid
LoRa-Based Soil NPK Sensing Node for Precision Farming — project thumbnail preview
More project photos (2)

The problem

LoRa-Based Soil NPK Sensing Node for Precision Farming is a field node that measures soil nitrogen, phosphorus and potassium and reports the readings over LoRa to a cloud dashboard, so fertiliser decisions rest on measured nutrient data instead of guesswork. A three-prong RS485 NPK probe buried in the soil returns one value per nutrient in mg/kg, while a capacitive moisture sensor and a temperature sensor add the context that makes those numbers interpretable. An ESP32 reads the probe over Modbus RTU through a MAX485 transceiver, packs the readings into a short LoRa frame, and an SX1278 radio at 433 MHz sends it to a gateway kilometres away, where the dashboard stores it, draws trends and flags low nutrients. The design suits farms without Wi-Fi or mobile coverage, because LoRa carries small packets over long distances on very little power. This listing covers the complete node: probe, controller, radio, gateway link and dashboard.

Farmers usually decide fertiliser by experience, by the look of the crop, or by a lab test that takes days and covers a single sample. That leaves two problems: fertiliser is often applied where the soil does not need it, which wastes money and washes into water, and a real deficiency can go unnoticed until the crop shows it. A buried sensing node that reports NPK, moisture and temperature every few minutes gives a running picture of each plot instead of one snapshot, and LoRa makes that picture affordable across a field where Wi-Fi cannot reach and mobile data is patchy or costly.

SYSTEM FLOW

6 components 5 connections

Live flow
Drag to explore
100%
sensorNPK Probe

Three-prong probe reads nitrogen, phosphorus and potassium in the soil over RS485.

Follow the working sequence

How it works

The node works as a loop: sense, pack, send, store, display. The NPK probe sits buried with its three prongs in the soil, and the ESP32 wakes on a timer, waits for the probe's readings to settle, and asks for nitrogen, phosphorus and potassium over Modbus RTU. The same wake cycle reads soil moisture and temperature, and the ESP32 packs all five values with the node ID into a short LoRa frame. The SX1278 radio transmits that frame at 433 MHz, a gateway a kilometre or more away receives it, checks the signal strength, and forwards the packet to the cloud over the internet. The dashboard stores the packet, updates the live cards and the 24-hour trend, and raises a low-nutrient flag when a value crosses its threshold. Between uplinks the node sleeps, so the battery lasts days and the radio stays silent most of the time.

  1. The NPK probe is buried with its three steel prongs fully in the soil at a depth of approximately 15 cm, and the moisture and temperature sensors are placed beside it.
  2. On power-up the firmware waits for a fixed settling interval before trusting the first Modbus read, because the probe's readings drift while the soil-electrode interface stabilises; the first read is discarded and logged, so the behaviour is visible in the serial output.
  3. Every 10 minutes the ESP32 wakes, reads nitrogen, phosphorus and potassium from the probe over Modbus RTU at 9600 bps through the MAX485 transceiver, then reads soil moisture and temperature.
  4. The ESP32 packs the five readings with the node ID into a LoRa frame of approximately 24 bytes and transmits it on 433 MHz at spreading factor SF10 with 125 kHz bandwidth.
  5. The gateway receives the frame, records the RSSI and SNR, and forwards the packet to the cloud over its internet connection.
  6. The dashboard stores the packet, updates the live NPK, moisture and temperature cards, extends the 24-hour trend lines, and flags any nutrient below its configured threshold.
  7. Between uplinks the node returns to deep sleep, keeping average current draw low so the 12 V battery lasts for days without charging.

Comparison: LoRa vs Wi-Fi vs GSM for farm telemetry

Option Reach Power at the node Needs at the field Fit
LoRa (this project) Approximately 3–7 km open field (expected) Very low, battery for days One gateway with internet Scattered plots, no Wi-Fi, small packets
Wi-Fi Approximately 50–100 m (expected) High, needs mains or large battery Router in range of every node A single polyhouse or shed with power
GSM / 4G Wherever mobile signal reaches High, needs mains or large battery SIM card and mobile data per node Single remote site with good signal

Tech stack:

  • ESP32
  • RS485 NPK probe · Modbus RTU
  • SX1278 LoRa radio · 433 MHz
  • MAX485 transceiver
  • Capacitive soil moisture sensor · DS18B20 temperature sensor
  • Arduino IDE · C++
  • MQTT · cloud dashboard · HTML · JavaScript
  • 12 V battery · solar-ready power
Parameter Value
Controller ESP32 dual-core, 240 MHz (datasheet)
NPK probe RS485, Modbus RTU, 3 channels (N, P, K)
NPK range 0–1999 mg/kg per channel (datasheet)
NPK resolution 1 mg/kg (datasheet)
NPK accuracy ±2% F.S. (datasheet, reference values)
Probe supply 12–24 V DC (datasheet)
Probe protection IP68 sealed probe (datasheet)
Modbus baud rate 9600 bps (default)
LoRa radio SX1278, 433 MHz, SF7–SF12 (datasheet)
LoRa bandwidth 125 kHz (design setting)
LoRa sensitivity −137 dBm at SF12 (datasheet)
LoRa range Approximately 3–7 km open field at SF10 (expected)
Uplink interval Every 10 min (configurable)
Packet size Approximately 24 bytes per uplink (design target)
Soil moisture Capacitive sensor, 0–100% (design range)
Soil temperature DS18B20, −55 °C to +125 °C (datasheet)
Battery 12 V battery pack (design target)
Battery runtime Approximately 5–7 days per charge without solar (expected, duty-cycle dependent)
Dashboard Web dashboard, 24 h trend, threshold alerts

Project features

The node's three strongest capabilities are its NPK sensing, its LoRa telemetry and its dashboard, with low-power operation tying them together. The RS485 probe reports nitrogen, phosphorus and potassium as three separate channels, so a grower sees which nutrient is short rather than a single fertility score. The SX1278 radio carries those readings kilometres to a gateway without Wi-Fi or mobile data at the node, which is what makes the system usable across real fields. The cloud dashboard turns the arriving packets into live cards, 24-hour trends and low-nutrient alerts, so the data becomes a fertiliser decision instead of a raw number. Around those three, the node adds soil moisture and temperature context, configurable thresholds and uplink intervals, multi-node addressing and deep-sleep battery operation, so one gateway can serve several plots for days at a time.

  • [RS485 NPK sensing] A three-prong probe measures nitrogen, phosphorus and potassium as separate channels over Modbus RTU, each reported in mg/kg, so the dashboard can show which nutrient is actually short instead of a single fertility score.
  • [LoRa long-range telemetry] An SX1278 radio at 433 MHz sends each reading to a gateway kilometres away, so one gateway serves several plots with no Wi-Fi or mobile data at the node.
  • [Cloud dashboard with trends and alerts] The dashboard plots NPK, moisture and temperature over 24 hours, lists recent packets with signal strength, and flags a nutrient as low when it falls below its configured threshold.
  • [Soil moisture and temperature context] A capacitive moisture sensor and a temperature sensor sit beside the NPK probe, because a nutrient reading means little without knowing whether the soil is dry, wet or cold.
  • [Configurable thresholds and uplink interval] Nutrient thresholds, the low-nutrient alert level and the 10-minute uplink interval are set in firmware and on the dashboard, so the node can be tuned to a crop and a plot.
  • [Multi-node addressing] Each probe carries its own Modbus slave address, so extra nodes can join the same RS485 bus and report to the same gateway without new radio hardware.
  • [Low-power battery operation] The node sleeps between uplinks and draws only a few milliamps on average, so a 12 V battery runs it for days; a solar panel can be added for longer unattended operation.

What is included

  • Working LoRa NPK sensing node (ESP32, SX1278 radio, MAX485, NPK probe, moisture and temperature sensors)
  • LoRa gateway receiver and cloud dashboard with NPK trends, packet log and low-nutrient alerts
  • Complete firmware source code (Arduino IDE, C++) with Modbus read, LoRa framing and deep-sleep logic
  • Circuit and wiring documentation with the RS485 and LoRa pin connections
  • Component list with supplier notes for the probe, radio and sensors
  • Project abstract PDF (10 sections) and full project report
  • PPT presentation and viva Q&A preparation document

Limitations & prerequisites

  • NPK readings are reference values derived from soil electrical characteristics, not laboratory chemical analysis; they show trends and relative differences, and fertiliser doses still need a lab test for exact formulation.
  • The probe's readings drift for a short time after power-up while the soil-electrode interface stabilises, so the firmware discards the first read after every restart.
  • LoRa range is approximately 3–7 km in open fields and drops with trees, buildings and terrain; the gateway must be placed with a clear path to the nodes.
  • NPK accuracy depends on soil type and moisture, so the probe needs calibration against known soil before its numbers are compared across different fields.
  • The gateway needs an internet connection to forward packets; if it goes offline, the dashboard stops updating until the link returns.
  • Battery runtime of approximately 5–7 days assumes the 10-minute uplink interval; shorter intervals or a weak LoRa link shorten it, and solar charging is an optional addition.
  • The prototype is a bench and demo-plot build, not a weatherproofed commercial field unit; the enclosure and cabling need hardening for a full season outdoors.

Frequently Asked Questions

Is this project suitable for a final-year project?

Yes — for IoT & Embedded, Electronics & Telecommunication and Electrical Engineering programs, because it combines RS485 and Modbus communication, LoRa radio configuration, embedded firmware with deep sleep, and a cloud dashboard in one build. The viva can cover sensing, wireless networking and data visualisation from the same project, and the team can demonstrate probe settling behaviour, LoRa range checks and dashboard data they measured themselves.

How accurate are the NPK readings?

The probe reports each nutrient over 0–1999 mg/kg with 1 mg/kg resolution and a datasheet figure of ±2% of full scale, but those are reference values derived from soil electrical characteristics, not laboratory chemical analysis. They are reliable for tracking trends and comparing plots, while exact fertiliser doses still need a lab test. Calibration against known soil improves comparability across different fields.

Does it work without Wi-Fi or mobile signal at the field?

Yes — the sensing node itself needs no Wi-Fi or mobile signal, because it talks to the gateway over LoRa, which carries small packets kilometres across open fields without any network at the node. Only the gateway needs an internet connection, to forward packets to the cloud dashboard, so if it goes offline the dashboard pauses until the link returns. The node itself keeps sensing and transmitting regardless of mobile coverage.

What LoRa range can I expect?

Approximately 3–7 km in an open field at spreading factor SF10 with a quarter-wave antenna, based on vendor guidance for this radio at 433 MHz. Trees, buildings, hills and a low antenna cut that down, so the gateway should be placed high with a clear path to the nodes. SF12 can be used to trade data rate for extra reach, and a range test is part of the build documentation.

Can more nodes be added for a bigger field?

Yes — each NPK probe carries its own Modbus slave address, so extra nodes can join the same RS485 bus and report through the same gateway without new radio hardware, and the dashboard lists every node separately with its own readings and alerts. Adding nodes is a listed customisation, and solar charging can be added at the same time for longer unattended operation. The gateway handles several nodes because each LoRa packet carries its own node ID.

What will I receive with the project?

You receive the working sensing node with probe, ESP32, LoRa radio and sensors, the gateway receiver and cloud dashboard, complete firmware source code, circuit and wiring documentation, a component list, the project abstract and full report, plus a PPT and viva Q&A document. Everything is prepared fresh for your order, and the report documents the build, the test procedure and the results honestly.

Components & software requirements
  • ESP32
  • RS485 NPK probe · Modbus RTU
  • SX1278 LoRa radio · 433 MHz
  • MAX485 transceiver
  • Capacitive soil moisture sensor · DS18B20 temperature sensor
  • Arduino IDE · C++
  • MQTT · cloud dashboard · HTML · JavaScript
  • 12 V battery · solar-ready power
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation