RAIN DROP SENSOR

TINKS032

  1. The rain sensor module is an easy tool for rain detection.
  2. It can be used as a switch when raindrop falls through the raining board and also for measuring rainfall intensity.
  3. The sensor provides a Digital as well as Analog output.
Features:-
  1. Adopts high quality of RF-04 double-sided material.
  2.  Anti-oxidation, anti-conductivity, with long use time.
  3. Potentiometer adjust the sensitivity.
  4. Working voltage 5V.
  5. Output format: Digital switching output (0 and 1) and analog voltage output AO.
  6. Small board PCB size: 3.2cm x 1.4cm.
  7. Uses a wide voltage LM393 comparator.
Applications:-
  1. Used in condensation sensing
  2. Wiper control
  3. Drop Detection
  4. Irrigation Control

    

int rain=A0;
void setup(){
Serial.begin(9600);
pinMode(rain, OUTPUT);
}
void loop(){
//analog output
if(analogRead(A0)<300)
Serial.println("Heavy Rain");
else if(analogRead(A0)<500)
Serial.println("Moderate Rain");
else Serial.println("No Rain");

delay(2500);
}