Soil Moisture Sensor Module
The Soil Moisture Sensor Module is a simple and affordable solution for detecting moisture levels in soil, ideal for building DIY plant watering systems and smart irrigation projects. Designed for makers, students, and IoT developers, it provides reliable analog and digital output for seamless integration with any microcontroller.
The sensor uses a probe with exposed conductive tracks to detect changes in the soil's electrical resistance. When the soil contains more moisture, its conductivity generally increases, allowing the module to detect the change. The onboard LM393 comparator provides a convenient digital output, while the module's dual-output design makes it suitable for projects that need either threshold-based detection or sensor readings through a compatible microcontroller.
With a 3.3V to 5V operating range, this moisture sensor can be used with popular development boards such as Arduino and other microcontroller platforms. The onboard power and output indicators make testing easier, while the mounting hole allows the module to be fixed inside DIY project enclosures or plant-monitoring setups.
For a corrosion-resistant alternative, check out our capacitive soil moisture sensor.
What is a Soil Moisture Sensor Module?
A soil moisture sensor module is an essential component for gardening and IoT-based smart irrigation systems. This moisture sensor works by detecting the water content in soil through electrical resistance. It is widely used in agriculture, home gardening, and automated plant watering systems to ensure optimal plant health.
Applications:
- DIY Agriculture Projects.
- DIY Plant Watering System.
- Agriculture
- Horticulture
- Ecological Environmental Protection
- Water Resource Management
- Research and Education
Also check the Automatic Plant Watering System Kit includes components such as a relay module, mini water pump, plastic battery storage case holder, jumper wires, vinyl tubing, and a soil moisture detector module.
Features:
- Operating voltage: 3.3V to 5V
- Dual output mode for accuracy in the soil moisture sensor readings
- Easy installation with bolt-hole
- Power (red) and digital output (green) indicators
- LM393 comparator chip for stability
- Digital output (D0) for moisture detection
- Uses two probes in the moisture sensor module to measure soil water content
Soil Moisture Sensor pinout

Build your Automatic Plant Watering System with Arduino:
To download the code Click Here
Resistive vs Capacitive Soil Moisture Sensor
| Feature |
Resistive Soil Moisture Sensor |
Capacitive Soil Moisture Sensor |
| Working Principle |
Measures electrical resistance between two exposed conductive probes. |
Measures changes in capacitance caused by soil moisture (no exposed corrosion-prone tracks). |
| Corrosion Resistance |
Low. Prone to rapid corrosion due to electrolysis when current passes through moist soil. |
High. Enclosed design prevents direct contact between soil and conductive material, greatly extending lifespan. |
| Lifespan |
Short to Medium (requires power cycling via a relay to delay degradation). |
Long (ideal for permanent or long-term plant monitoring setups). |
| Cost |
Very Affordable (Best for students and short-term DIY projects). |
Slightly higher, but offers better long-term value. |
| Best For |
Basic Arduino learning, short-term experiments, and budget-friendly builds. |
Long-term plant watering systems, smart irrigation, and professional IoT agriculture. |
Calibration: Dry vs Wet Values
Note: The analog values below are based on a standard 10-bit ADC (0–1023) commonly used with Arduino and microcontrollers. The LM393 comparator handles the digital output based on your potentiometer threshold.
| Soil Condition |
Expected Analog Value (0-1023) |
Digital Output (D0) |
Recommended Action |
|
Dry Soil (Air or completely dry potting mix) |
700 – 1023 |
HIGH (LED Off) |
Trigger water pump/relay to start irrigation. |
|
Moist Soil (Ideal watering range) |
300 – 700 |
Varies (Based on potentiometer calibration) |
Maintain current state; no action needed. |
|
Wet / Waterlogged (Submerged in water) |
0 – 300 |
LOW (LED On) |
Turn off water pump to prevent overwatering and root rot. |