Hackster is hosting Hackster Holidays, Finale: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Tuesday!Stream Hackster Holidays, Finale on Tuesday!
Smit Babariya
Published

Rain Drop Sensing System

Building a rain sensing alarm with Arduino.

IntermediateProtip24,857
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
12 projects • 39 followers
Embedded Eng. with demonstrated history of working in diff. Projects like ESP32,8266 & Arduino.Strong engineering professional in E&C eng.

Comments