Project Name: Interfacing of Rain Drop Sensor With Arduino Uno
Project Name: Interfacing of Rain Drop Sensor With Arduino Uno
Description: In this tutorial we will learn how to interface a Rain Drop Sensor with the Arduino Uno.
Raindrop sensor is basically a board on which nickel is coated in the form of lines. It works on the principal of
resistance. Rain Sensor module allows to measure moisture via analog output pins and it provides a digital output
when a threshold of moisture exceeds.
The module is based on the LM393 op amp. It includes the electronics module and a printed circuit board that
“collects” the rain drops. As rain drops are collected on the circuit board, they create paths of parallel resistance
that are measured via the op amp.
Material Required:
Material Quantity
Arduino Uno 1
Jumper cables 4
Pinout Diagram:
Circuit Diagram:
Parameter Value
A0 Analog Output – A0
.
Tested Programming Code:
const int sensorMin = 0;
void setup()
Serial.begin(9600);
void loop()
switch (range)
case 0:
Serial.println("RAINING");
break;
case 1:
Serial.println("RAIN WARNING");
break;
case 2:
Serial.println("NOT RAINING");
break;
delay(1000); }
Precautions:
5. Don’t lose hope if Rain Drop Sensor does not run properly for the first time, try again.
Conclusion:
Once your sketch is running, you have to open your serial monitor. There you can see the Moisture or
Rain on the Board.
References: https://electrosome.com/interfacing-rain-sensor-arduino/
http://www.instructables.com/id/Arduino-Modules-Rain-Sensor/