Component guide · Intermediate · 3 min read
Soil Sensors

NPK, EC, pH and Moisture Probes for Smart Farming
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Capacitive moisture probes are the most reliable low-cost soil sensors. EC probes show salinity, pH probes need regular calibration, and NPK probes give a rough indication rather than a lab result. Industrial multi-parameter probes talk RS485 Modbus, so you need a TTL-to-RS485 converter and the right baud rate. Place probes in firm contact with soil and log trends instead of single readings.
Key specs at a glance
- Moisture
- Capacitive, analog output or RS485
- EC
- 0 to 10 mS/cm on typical probes
- pH
- 3 to 9 soil probes; 0 to 14 for water
- NPK
- mg/kg estimate, RS485 Modbus
- Supply
- 3.3 to 5 V analog; 5 to 30 V on RS485 probes
- Protection
- IP68 on industrial probes; seal analog PCBs
What each sensor tells you
Different probes answer different questions.
| Probe | Measures | Notes |
|---|---|---|
| Capacitive moisture | Water content | Corrosion-resistant; calibrate dry and wet in your soil |
| Resistive moisture fork | Water content | Corrodes within weeks; avoid for long runs |
| EC probe | Salt and fertiliser level | Reads higher with wetter soil and warmth |
| pH probe | Acidity | Needs buffer solutions; do not leave dry |
| NPK probe | Nitrogen, phosphorus, potassium estimates | Trend indicator, not lab accuracy |
| 4-in-1 RS485 probe | Moisture, temperature, pH and EC | One cable; Modbus; good for field stations |
- Capacitive moisture
- Measures:
- Water content
- Notes:
- Corrosion-resistant; calibrate dry and wet in your soil
- Resistive moisture fork
- Measures:
- Water content
- Notes:
- Corrodes within weeks; avoid for long runs
- EC probe
- Measures:
- Salt and fertiliser level
- Notes:
- Reads higher with wetter soil and warmth
- pH probe
- Measures:
- Acidity
- Notes:
- Needs buffer solutions; do not leave dry
- NPK probe
- Measures:
- Nitrogen, phosphorus, potassium estimates
- Notes:
- Trend indicator, not lab accuracy
- 4-in-1 RS485 probe
- Measures:
- Moisture, temperature, pH and EC
- Notes:
- One cable; Modbus; good for field stations
Wiring RS485 Modbus probes
RS485 probes have four wires: power, ground, A and B. Connect A and B to a TTL-to-RS485 module on your Arduino or ESP32, and keep the probe supply at the voltage on its label (often 5 to 30 V). Set the address, baud rate and register map from the datasheet, then read the registers with a Modbus library; see Modbus RTU with Arduino and ESP32 and RS485. Several probes can share one bus if each has a different address.
Calibration and placement
take a dry reading in air and a wet reading in water, then map your soil between them.
calibrate with pH 4.0 and 7.0 buffers (and 9.2 where used) and rinse the probe between solutions. Keep it wet in storage solution.
use a standard solution to check the reading.
push the probe in firmly with no air gaps, away from stones and roots, at the depth of the roots.
log temperature as well; EC and moisture readings drift with it.
A simple field logger
- 1Mount an ESP32 and RS485 module in an IP65 box.
- 2Read the probe every 10 to 30 minutes and sleep between readings; see solar power.
- 3Send values over Wi-Fi, LoRa or 4G; see LoRaWAN.
- 4Plot trends, not single numbers.
- 5Water by threshold with a relay and pump; see soil moisture sensors.
Try it: Adc resolution calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Treating NPK readings as exact fertiliser doses.
- Using resistive probes outdoors for months.
- Leaving a pH probe dry.
- Wiring RS485 A and B the wrong way round.
- Not accounting for soil temperature and texture.
Frequently asked questions
Which soil moisture sensor lasts longest?
A capacitive probe sealed on the electronics, or an industrial IP68 probe.
Are NPK sensors accurate?
They give a rough, relative reading and need calibration against lab data for decisions.
Do I need RS485?
Only for industrial probes. Simple capacitive probes use an analog pin.
How often should I calibrate pH?
Check at least every few weeks and whenever readings look off.
Can one probe measure several things?
Yes. 4-in-1 RS485 probes report moisture, temperature, pH and EC.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.





