rain detector
i have a simple project which detects rain and trigger a buzzer and at the same time a servo motor rotate 90 degree and save your cloths 'What It Does' This project continuously monitors a water level sensor to detect raindrops. When rain is detected, the Arduino immediately triggers an active buzzer to provide an audible alert and rotates a servo motor to 90°. Once the sensor is dry again, the buzzer turns off and the servo returns to its original 0° position. This project demonstrates basic sensor monitoring, servo motor control, and event-based automation using an Arduino. ## How to Use It 1. Assemble the circuit according to the wiring diagram. 2. Connect the Arduino to your computer using a USB cable. 3. Open the project in the Arduino IDE. 4. Select the correct **Board** and **COM Port**. 5. Upload the code to the Arduino. 6. Place the water level sensor where it can detect raindrops. 7. Power the Arduino. 8. When rain falls on the sensor: - The buzzer will sound. - The servo motor will rotate to **90°**. 9. Once the sensor dries: - The buzzer will stop. - The servo will return to **0°**. 10. If needed, adjust the sensor threshold in the code to change the detection sensitivity. ## Bill of Materials | Component | Quantity | Purpose | |-----------|:--------:|---------| | Arduino Uno (or Nano) | 1 | Main microcontroller | | Water Level Sensor Module | 1 | Detects rain/water | | SG90 Micro Servo Motor | 1 | Rotates 90° when rain is detected | | Active Buzzer (5V) | 1 | Provides an audible alert | | Jumper Wires | 1 Set | Electrical connections | | Breadboard (Optional) | 1 | Prototyping the circuit | | USB Cable | 1 | Programming and powering the Arduino | | 5V Power Supply (Optional) | 1 | Recommended for powering the servo separately |
