Add the following snippet to your HTML:
This project helps when any of the indoor cc cameras are covered with a blanket it beeps & tells that there's a thief in house.
Read up about this project on
thisprojectcanbeexperimentedbybegineers.
const int buzz = 13; int sensorvalue = 0; void setup() { Serial.begin(9600); pinMode(buzz, OUTPUT); } void loop() { sensorvalue=analogRead(A0); if(sensorvalue<200) { digitalWrite (buzz, HIGH); delay (500); digitalWrite (buzz,LOW); } else if(sensorvalue>200) { digitalWrite(buzz, LOW); delay(200); } Serial.println(sensorvalue); delay(20); }
Comments