Making motion detector Using PIR Motion sensor with Arduino
HTML-код
- Опубликовано: 17 сен 2024
- In this video we will be making a motion sensor using Arduino you can replace the LED with a buzzer
The code for this project is
int LED = 13;
int PIR = 7;
void setup() {
pinMode(PIR, INPUT);
pinMode(LED, OUTPUT);
}
void loop()
{
int value = digitalRead(PIR);
if (value == HIGH)
{
digitalWrite(LED, HIGH);
}
else
{
digitalWrite(LED, LOW);
}
}
Please wait for atleast 60 sec after powering the project because the sensor needs atleast 60 sec to work properly
Thank you
If you love this video click on subscribe and press the thumbs up button
Broo..finally got a helpful video..i made it in my home
2022 il ee video repeat kanunnavar undo
🙋🏽