IoT application that will alert whenever it will be going to rain outside

 IoT application that will alert whenever it will be going to rain outside - Proteus Simulation


Proteus Circuit Design:

Rain sensing circuit


Components Required:

1) Arduino Uno 
2) Rain Sensor
3) Virtual Terminal
4) Logic Toggle
5) DC
6) Ground


Links for Libraries:

https://drive.google.com/drive/folders/18G4d2w5Sot_XCv7rKVMpC90EIM1FT8_f


Link for Arduino IDE download:

https://www.arduino.cc/en/software


Code for Arduino:

void setup() {
  Serial.begin(9600);
  pinMode(2, INPUT);
}

void loop() {
  int rain_sensor = digitalRead(2);
  if(rain_sensor == 1){
    Serial.println("It's raining");
    delay(500);
  }
  if(rain_sensor == 0){
    Serial.println("It's not raining");
    delay(500);
  }
}

Comments

Popular posts from this blog

Installing Hyper Ledger Fabric on Windows 10

Add the sensors to the Robot object and develop the line-following behavior code.

Create and deploy a block chain network using Hyperledger Fabric SDK for Java on Ubuntu 22.04 LTS