Another illustration using PIR (Passive Infrared Sensor) with Numeric Pad and Arduino NANO, These project is based on Security System that’s detect human movement on the area and triggered the alarm. As you can see the diagram below it has 3 LED as our indicator as Alert, Enabled, and Disabled. The concept is if the PIR (Passive Infrared Sensor) detects movement then it will trigger the buzzer as our alarm, when you’re going to turn off the alarm you need to input the password as the security mechanism.

Required Components

  • 1x Arduino UNO, NANO, PRO, MEGA, ETC…
  • 1x PIR (Passive Infrared Sensor) Motion Detection Module
  • 1x 3 LED (Yellow, Green, Red)
  • 3x 220R Resistor
  • 1x Buzzer
  • 1x Matrix Numeric Pad

Wiring Diagram


Sketch Code


Download Password.h code library | Zip
Download Keypad.h code library | Zip

Security Alarm System on PIR Sensor and Keypad with Nano
Tagged on:                         

2 thoughts on “Security Alarm System on PIR Sensor and Keypad with Nano

  • at

    Can it use arduino uno with speaker rather using NANO an buzzer?

    • at

      Yes why not, however you need to use sound driver or WTV020SD which is hookup to your arduino board. :)


Leave a Reply

Your email address will not be published. Required fields are marked *