| Sensor | How it measures | Life in wet soil | Indicative price |
|---|---|---|---|
| Resistive fork (YL-69 / FC-28) | Current between two bare metal prongs | Weeks — the prongs corrode | ₹40–80 |
| Capacitive v1.2 / v2.0 | Capacitance through a coated board; no bare metal in the soil | Months to years if the top edge is sealed | ₹60–150 |
| RS485 / Modbus stainless probe | Industrial probe, often with temperature (pricier ones claim NPK) | Years | ₹1,500–5,000+ (varies widely) |
Soil moisture is one of the most built projects in India — balcony plants, kitchen gardens, drip irrigation on farms. The sensor you choose decides whether it still works after the first month. Prices are indicative for Indian online shops.
Resistive (two-prong fork): avoid for anything permanent
It passes current through the soil between two plated prongs. That current drives electrolysis: the prongs corrode, readings drift, and the plating is gone within weeks. It can also add metal to the soil.
If you must use one: power it from a GPIO only for the moment you read it, then switch it off. That slows the corrosion but doesn’t stop it.
Capacitive v1.2: our pick for most projects
It measures how the soil changes the capacitance of a coated copper track, with no exposed metal in the soil. Readings are stable and it lasts far longer.
Component page and wiring: capacitive soil moisture sensor.
Check yours — bad batches are common
- Timer chip: look at the 8-pin chip. A TLC555 (CMOS) works from 3.3 V. Some boards carry an NE555, which needs about 4.5 V or more — it won’t work properly on an ESP32’s 3V3; power it from 5 V and keep its output under 3.3 V.
- Regulator: boards meant for 3.3–5.5 V have a small 3-pin regulator (often marked 662K). A missing or wrong part changes how it behaves at 3.3 V.
- Slow or no response: some boards are missing a resistor in the output stage, so the output barely changes. Compare two boards side by side — a good one swings clearly between dry air and a glass of water.
Make it last
- The top edge of the board (cut edge and electronics) isn’t waterproof. Coat the edges with nail polish, epoxy or conformal coating, and cover the electronics with heat-shrink or a small box.
- Push it in only up to the line marked on the board.
Calibrate in your own soil
Record the reading in dry air and in a glass of water, then in your soil when it’s just been watered and when the plant needs water. Use those numbers, not ones from the internet — soil type changes them a lot. On an ESP32, use an ADC1 pin (GPIO 32–39) so readings still work with Wi-Fi on.
RS485 probes: for farms and long cables
Stainless-steel probes with a Modbus RS485 output survive years outdoors and work over long cables to a pump house. They need a 12–24 V supply and an RS485 adapter (MAX485 module) on the board. Treat “NPK” readings from low-cost probes with caution — they’re estimated from conductivity, not measured directly, and aren’t a substitute for a soil test.
Verdict
| Use | Pick |
|---|---|
| Learning, a one-week experiment | Resistive is OK — but you’ll replace it |
| Balcony plants, garden, most projects | Capacitive v1.2 (check the chip, seal the edge) |
| Farm, outdoor, long cable runs | RS485 stainless probe |
Projects: soil moisture monitor, plant watering system, irrigation timer. Pumps on 230 V must be switched through a contactor and wired by an electrician.