Collection: Soil Moisture & Water Sensors
Soil moisture and water sensors power plant-watering systems, tank alarms and leak detectors.
Soil sensors come in two kinds:
- Resistive probes pass current through two bare prongs. They are cheap but corrode in the soil within weeks.
- Capacitive sensors (such as the v2.0 boards) measure through a coated surface, so they last far longer. They are the better choice for anything left in a pot.
Both give an analog voltage that you must calibrate. Note the reading in dry air and in water, and do not assume which end reads higher until you have measured it.
For water, a resistive water-level board reports wet versus dry, which is fine for a leak alarm. The XKC-Y25 senses water through a plastic or glass tank wall up to 20 mm thick, so nothing goes inside the tank.
How to choose:
- Pick capacitive for soil.
- Pick a sensor plate for leaks.
- Pick the XKC-Y25 for tanks.
On an ESP32, read analog sensors on ADC1 pins (such as GPIO34 or 35), because ADC2 stops working while Wi-Fi is on. The XKC-Y25 runs from 5-24V, so its output needs a diode or level shifter before an ESP32 pin.
Frequently asked questions
Capacitive or resistive soil sensor?
Capacitive. Resistive probes corrode within weeks, and capacitive ones last.
How do I calibrate a soil sensor?
Record the reading in air and in water, then map your readings between those two values.
Which ESP32 pin should I use?
An ADC1 pin such as GPIO34 or 35, which keeps working with Wi-Fi on.
Does the XKC-Y25 work on a metal tank?
No. It senses through plastic or glass walls up to 20 mm thick.
Guides
- Capacitive vs Resistive Soil Moisture Sensor: Which to Buy
- Capacitive Soil Moisture Sensor + ESP32: Pinout, Wiring Diagram and Working Code
- XKC-Y25-V + ESP32: Wire Colours, Wiring Diagram and Working Code
Reference pages on soldr.ai
- XKC-Y25-V liquid level sensor
- Crowtail capacitive moisture sensor 2.0
- XKC-Y26-V liquid level sensor
- XKC-Y26 PNP 24 V level sensor
- XKC-Y25 NPN liquid level sensor
Describe your build on Soldr and it picks the parts, writes and compiles the code, and shows how to wire them. Sign in and get 100 credits free.
-
Capacitive Soil Moisture Sensor V2.0 – Corrosion-Resistant Analog Probe
Regular price Rs. 55.00 INRRegular priceSale price Rs. 55.00 INR -
Anti-Corrosion Rated Water Level Sensor with Ball Float Switch
Regular price Rs. 140.00 INRRegular priceSale price Rs. 140.00 INR -
XKC-Y25-V Non-Contact Liquid Level Sensor | 5V Digital Output
Regular price Rs. 630.00 INRRegular priceSale price Rs. 630.00 INR -
Water Level Sensor Module – Liquid Detection for Arduino & ESP32
Regular price Rs. 45.00 INRRegular priceSale price Rs. 45.00 INR -
Float Sensor Switch for Water Level Controller - Compoden
Regular price Rs. 110.00 INRRegular priceSale price Rs. 110.00 INR -
Elecrow Crowtail Capacitive Moisture Sensor V2.0 for Arduino & IoT
Regular price Rs. 220.00 INRRegular priceSale price Rs. 220.00 INR -
Soil Moisture Sensor Module — Analog/Digital Output, Adjustable Threshold
Regular price Rs. 35.00 INRRegular priceSale price Rs. 35.00 INR -
Rain Drop Sensor Module – Digital & Analog Output | Compoden
Regular price Rs. 45.00 INRRegular priceSale price Rs. 45.00 INR -
XKC-Y26-V Non-Contact Liquid Level Sensor 5-24V | Compoden
Regular price Rs. 800.00 INRRegular priceSale price Rs. 800.00 INR -
XKC-Y26 PNP 24V Non-Contact Liquid Level Sensor – Compoden
Regular price Rs. 770.00 INRRegular priceSale price Rs. 770.00 INR -
XKC-Y25 NPN Non-Contact Liquid Level Sensor for Water Tanks & Pipes
Regular price Rs. 670.00 INRRegular priceSale price Rs. 670.00 INR