In this project, we will discuss Home Security Alarm Using PIR Sensor & Arduino for Night time only.
A night security light only turns on when it’s dark and when movement is detected. The LED & the buzzer turns on when it’s dark & movement is detected. When there’s light, the LED is turned off, even when motion is detected.
Connect sensor GND pin to GND
Connect sensor Out pin to Arduino pin 2
Connect led +ve pin to Arduino pin 5 and GND pin to GND
Connect buzzer +ve pin to Arduino pin 6 and GND pin to GND
Connect resistor one terminal to buzzer -ve terminal and another to LDR
Connect LDR one terminal to resistor and another to VCC
- Arduino UNO Board
- Uno cable
- PIR Sensor HC-SR501
- 10K Resistor
- 9V Battery
- Battery snapper connector
- Jumper Wires