technoesolution
Published © CC BY-NC-ND

Rain Detector Alarm Using Arduino Uno

In this article I'll show you how to make a rain detector alarm using Arduino uno, Let's get started

IntermediateFull instructions provided1 hour4,592
Rain Detector Alarm Using Arduino Uno

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Buzzer
Buzzer
×1
LED (generic)
LED (generic)
×1
Resistor 330 ohm
Resistor 330 ohm
×1
Single Turn Potentiometer- 10k ohms
Single Turn Potentiometer- 10k ohms
×1
Transistor BC547
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Copper Clad PCb Board
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering Iron Kit, SolderPro 150
Soldering Iron Kit, SolderPro 150
PCB Etching Kit

Story

Read more

Schematics

Circuit Diagram

Follow the circuit diagram to make connections.

Code

Arduino Code

C/C++
Make a circuit & Upload following code to Arduino Uno.
/*

Hello Friends Welcome to Techno-E-Solution
Here is the Code For Rain Detector Using Arduino

*/

int RainSensor = 0;
int buzzer = 10;
int LED = 8;
void setup() 
{
  
Serial.begin(9600);
pinMode(buzzer,OUTPUT);
pinMode(LED,OUTPUT);
}
 
void loop(){

int SensorValue = analogRead(RainSensor);

if(SensorValue >=100)

{
   
digitalWrite(buzzer,HIGH);
digitalWrite(LED,HIGH);
Serial.println("RAINING");
delay(1000); 
}
 
else

{ 
digitalWrite(buzzer,LOW);
digitalWrite(LED,LOW);
Serial.println("NOT RAINING"); 
delay(1000);
}
 }

// Thank You 

Credits

technoesolution
23 projects • 15 followers
Youtuber | Electrical Engineer | Electronics Lover | Article Writer | Project Developer |

Comments