By connecting a Raindrop Sensor to an Arduino board, a basic Rain Detection System can be constructed with ease. This type of system is applicable to a wide range of industries.
In this tutorial, we will build a basic rain sensor using Arduino with a buzzer. You can then use this set-up to build anything you wish on top of it.
Connect the wires between the Raindrop Sensor and the Arduino and the passive buzzer as shown in the image below.
Connections from the rain drop sensor to arduino :
• VCC → Arduino 5V pin
• GND → Arduino GND pin
• A0 → Arduino pin A0
Connections from the Arduino to the passive buzzer:
• Arduino GND pin → buzzer GND pin (- pin)
• Arduino pin 3 → buzzer VCC pin (+ pin)
Once you’ve connected the Raindrop Sensor to the Arduino and uploaded the code, open the serial monitor by clicking on its icon.
The serial monitor will display whether rain has been detected or not.