Rain / Moisture Sensor

Detect moisture in soil or rain drops with this Rain / Moisture Sensor. This sensor works by measuring the varying resistance when the rectangular plate is in contact with water such as when embedded in moist soil.

More details

Availability: SHIPS TODAY

Last Updated: 12/06/2023





  • Detect the amount of moisture in soil or rain droplets on the sensor plate
  • Insert the sensor plate into the sand, soil or other material
  • Arduino & Raspberry Pi compatible
  • PinoutDescription
    VCC+5 Volts Power Source
    GNDGround or negative power source
    DODigital Output. Goes low when moisture exceeds set threshold.
    A0Analog Output - Zero to five volts. The lower the voltage, the greater the moisture.
    Power LEDIndicates that power is applied
    Output LEDIlluminates when moisture has exceeded threshold set by sensitivity adjustment.
    Sensitivity AdjustmentClockwise is more sensitive. Counterclockwise is less sensitive.


Arduino Sample Code:

  Sensor A0 => Arduino A0
  VCC => Arduino 5V
  GND => Arduino Ground

int sensorPin = A0;    // select the input pin for the moisture sensor
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup() {

void loop() {
  // read the value from the sensor:
  sensorValue = analogRead(sensorPin);
  //Print the sensor value to Serial Monitor
  // wait 5 seconds between readings
No customers have asked questions about this product yet.