Arduino smart Home automation project





CODE



void setup() {

  Serial.begin(9600);

  pinMode (4,OUTPUT);

}



void loop() {

 if (Serial.available()) {



char c = Serial.read ();

if (c == '1'){

  digitalWrite(4,HIGH);

}

else if(c=='0'){

  digitalWrite(4,LOW);

 

}



if (digitalRead (4) == HIGH) {

  Serial.println ("LED ON");

} else {

  Serial.println ("LED OFF");

}

}



 

}



How to make Arduino smart Home automation system. In this project I will show you control your home Electrical bulb magnet door lock AC machine using serial monitor command. this Arduino code you can download my blogger web site.

Comments

Popular posts from this blog

How to Configure Huawei Router as a Wireless Access Point

How to Add GIS Map to Tems Discovery

How to block all Torrent (P2P) Traffic on Mikrotik Router