Smit Babariya
Published

Rain Drop Sensing System

Building a rain sensing alarm with Arduino.

IntermediateProtip6,042
Rain Drop Sensing System

Things used in this project

Story

Read more

Schematics

proteous simulation

Code

rain. sensingino

Arduino
 
const int buzzer=7;
int i;
void setup() {

pinMode(buzzer,OUTPUT);
pinMode(2,INPUT);  
}

void loop() {


if(digitalRead(2)==1)
{
  digitalWrite(buzzer,HIGH);
  
}

else
{
  digitalWrite(buzzer,LOW);
  
}


}

Credits

Smit Babariya

Smit Babariya

12 projects • 11 followers
Embedded Eng. with demonstrated history of working in diff. Projects like ESP32,8266 & Arduino.Strong engineering professional in E&C eng.

Comments