Arduino code:
#define SENSE A0
void setup()
{
pinMode(SENSE, INPUT);
pinMode(2, OUTPUT);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
if(digitalRead(SENSE))
{
digitalWrite(LED_BUILTIN, LOW);
pinMode(2, LOW);
}
else
{
delay (2000);
if(digitalRead(SENSE))
{
digitalWrite(LED_BUILTIN, LOW);
pinMode(2, LOW);
}
else
digitalWrite(LED_BUILTIN, HIGH);
pinMode(2, HIGH);
}
}
9 Comments
I want to make this project. I want this project details please send me
ReplyDeleteBhai iski PDF chahiya thi
DeleteSit Arduino ko program nahi kiya to problem hoga kiya
ReplyDeleteI am interested this project pl cost & purchase link
ReplyDeleteI want to this projects on cardboard ,please tell me cost and your adress
ReplyDeleteI want this project Bhai. I want this project details
DeleteIs code is right
ReplyDeleteCan i use pir sensor
ReplyDeleteI have one issue in my project that is when my eyes are open the buzzer rings and when I close my eyes the buzzer stops ringing. So what should I do. Please help me
ReplyDelete