Rain / Moisture Sensor
Price:
$5.99
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.
Features:
- 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
-
Pinout Description VCC +5 Volts Power Source GND Ground or negative power source DO Digital Output. Goes low when moisture exceeds set threshold. A0 Analog Output - Zero to five volts. The lower the voltage, the greater the moisture. Power LED Indicates that power is applied Output LED Illuminates when moisture has exceeded threshold set by sensitivity adjustment. Sensitivity Adjustment Clockwise is more sensitive. Counterclockwise is less sensitive.
Arduino Sample Code:
/*
Connection:
Connection:
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() {
*/
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() {
Serial.begin(9600);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
//Print the sensor value to Serial Monitor
Serial.println(sensorValue);
// wait 5 seconds between readings
delay(5000);
}
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
//Print the sensor value to Serial Monitor
Serial.println(sensorValue);
// wait 5 seconds between readings
delay(5000);
}