Add the following snippet to your HTML:
In this project, I have made a laser light alarm using Arduino Uno like in movies.
Read up about this project on
//codes by yashs lab void setup() { pinMode(13,OUTPUT);//connect pin no.13 to buzzer positive pinMode(9,INPUT);//connect pin no. 9 to do pin of ldr delay(500); } void loop() { if(digitalRead(9)==HIGH) { digitalWrite(13,HIGH); } }
Comments