How to make Smart Security Camera
Code :-
// Code Started
// This Code Created By Technical idEas(YT)
// Samrat Security Camera
#define pin2 2
#define pin3 3
void setup() {
// put your setup code here, to run once:
pinMode(2,INPUT);
pinMode(3,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(PIN2)==1){digitalWrite(3,HIGH);
delay(1000);
digitalWrite(3,LOW);
delay(20000);
digitalWrite(3,HIGH);
delay(1000),
digitalWrite(3,LOW);
delay(1000);}else{ digitalWrite(3,LOW);
}}
Circuit Diagramiagram :-
If you have any problem in making this, can you tell me on Instagram?
Instagram ID :- Technicalideas07
Subscribe Now :- https://youtube.com/channel/UCCJyR_wnt3SxhErsSUP9Wrw
Comments
Post a Comment