Soil Moisture Sensor

Sensors

Also known as: YL-69, YL-38, Soil Hygrometer Module

Soil Moisture Sensor pinout diagram
PinNameFunction
1VCCPower supply
2GNDGround
3AOAnalog moisture reading
4DODigital output (moist/dry threshold)

Summary

Two-part module — a probe that goes into soil, plus a small board that reads it. Gives both an analog reading (how moist the soil is) and a digital on/off signal (moist or dry, threshold set by an onboard trimpot). This covers the common cheap resistive version; capacitive versions (which corrode less) exist too and are wired the same way.