Soil moisture sensor (resistive, YL-69)
Two forks that measure soil resistance. Cheap, but the forks corrode in a few weeks.
What is the Soil moisture sensor (resistive, YL-69) and what is it used for?
Two forks that measure soil resistance. Cheap, but the forks corrode in a few weeks. Makers use it for plant watering demos.
Two exposed forks measure the electrical resistance of the soil, which falls as the soil gets wetter.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Soil moisture (relative) |
| Interface | Analog out plus digital threshold out |
| Supply voltage | 3.3 to 5 V |
| Watch out for | Power it only while reading to slow corrosion, or use the capacitive sensor |
Pinout
How to use it
Power the probe from a GPIO pin and switch it on only for a reading, which slows the corrosion of the forks. Calibrate by reading it in dry air and in a glass of water.
Applications
Builds that use it
Alternatives
- Capacitive Soil Moisture ModuleNo exposed metal, so it lasts for months outdoors
Common questions
What is the Soil moisture sensor (resistive, YL-69) used for?
In maker projects: plant watering demos.
How does the Soil moisture sensor (resistive, YL-69) work?
Two exposed forks measure the electrical resistance of the soil, which falls as the soil gets wetter.
What voltage does the Soil moisture sensor (resistive, YL-69) need?
3.3 to 5 V.
How do I connect the Soil moisture sensor (resistive, YL-69) to an Arduino or ESP32?
Analog out plus digital threshold out. Pins: VCC (3.3 to 5 V), GND (Ground), DO (Digital threshold output), AO (Analog, lower in wetter soil on most modules).
What can I use instead of the Soil moisture sensor (resistive, YL-69)?
Capacitive Soil Moisture Module.
