top of page
Search
Writer's pictureAKSHIT'S INNOVATION LAB

CODE AND CIRCUIT DIAGRAM FOR ANTI THEFT ALARAM


//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);

}

18 views0 comments

Recent Posts

See All

Comments


bottom of page