top of page
Search

CODE AND CIRCUIT DIAGRAM FOR ANTI THEFT ALARAM

Writer: AKSHIT'S INNOVATION LABAKSHIT'S INNOVATION LAB

//AKSHIT INNOVATION LAB

void setup()

{

pinMode(2, INPUT);

Serial.begin(9600);


pinMode(13, OUTPUT);

}


void loop()

{

Serial.println(digitalRead(2));

if (digitalRead(2) == 1) {

digitalWrite(13, HIGH);

} else {

digitalWrite(13, LOW);

}

delay(8);

}

 
 
 

Recent Posts

See All

Comments


©2020 by lifetimeskills.com. Proudly created with Wix.com

bottom of page