Components / Sensors / Soil moisture sensor (resistive, YL-69)

Soil moisture sensor (resistive, YL-69)

Two forks that measure soil resistance. Cheap, but the forks corrode in a few weeks.

MeasuresSoil moisture (relative)
InterfaceAnalog out plus digital threshold out
Supply voltage3.3 to 5 V
Watch out forPower it only while reading to slow corrosion, or use the capacitive sensor
SensorsReviewedMPN YL-69 / FC-28Used in 1 project
YL69
In short

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.

How it works

Two exposed forks measure the electrical resistance of the soil, which falls as the soil gets wetter.

Key specifications

Sensor specValue
MeasuresSoil moisture (relative)
InterfaceAnalog out plus digital threshold out
Supply voltage3.3 to 5 V
Watch out forPower it only while reading to slow corrosion, or use the capacitive sensor

Pinout

VCC3.3 to 5 V
GNDGround
DODigital threshold output
AOAnalog, lower in wetter soil on most modules

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

Alternatives

Buy at

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.