Smart Security System Using Arduino, Rfid & Pir Sensor

Photo of chanchaldada

Made by chanchaldada / IoT

About the project

In this project, I'll show how I built a Smart Security System using Arduino, RFID, and a PIR sensor.

Project info

Difficulty: Expert

Platforms: Arduino

Estimated time: 4 hours

License: MIT license (MIT)

Items used in this project

Hardware components

Rfid Reader Usb Tag Sampler Kit Rfid Reader Usb Tag Sampler Kit x 1
Arduino Uno - R3 Arduino Uno - R3 x 1
HC-SR501 HC-SR501 x 1
Active Buzzer Active Buzzer x 1
Red LED Red LED x 1
Green LED Green LED x 1
220Ω Resistors 220Ω Resistors x 1
Half-size Breadboard Half-size Breadboard x 1
10 Jumper Wires 150mm 10 Jumper Wires 150mm x 1
Usb A/micro Cable - 2m Usb A/micro Cable - 2m x 1

View all

Story

In every public place like home, malls, offices and small and big businesses they all have basic needs which is security. With an Arduino, an RFID reader, and a PIR motion sensor, it's possible to build a reliable and affordable smart security solution that allows authorized access while detecting unauthorized movement.


In this project, I'll show how I built a Smart Security System using Arduino, RFID, and a PIR sensor. The system verifies users through RFID cards and continuously monitors the protected area for motion. When unauthorized movement is detected, the system immediately activates an alarm, making it suitable for homes, laboratories, server rooms, offices, and workshops.

Project Features

  • RFID-based secure access control

  • PIR motion detection for intruder monitoring

  • Buzzer alarm for unauthorized movement

  • LED status indicators

  • Low-cost and easy to build

  • Expandable for IoT and cloud monitoring

  • Suitable for residential and commercial applications


How the System Works

The Arduino continuously waits for an RFID card to be presented to the RC522 reader.

When a registered RFID card is scanned:

  • The green LED turns ON.

  • Access is granted.

  • Motion monitoring is temporarily disabled for the authorized user.

If an unregistered card is detected:

  • The red LED lights up.

  • The buzzer sounds.

  • Access is denied.

After the system returns to monitoring mode, the PIR sensor continuously checks for movement. If motion is detected without prior authorization, the Arduino immediately triggers the alarm, warning nearby users of a possible intrusion.

This dual-layer authentication makes the system more secure than a standalone RFID or motion detection project.


Wiring Overview

RC522 RFID Module

  • SDA → D10

  • SCK → D13

  • MOSI → D11

  • MISO → D12

  • RST → D9

  • 3.3V → 3.3V

  • GND → GND

PIR Sensor

  • VCC → 5V

    • OUT → D2

    • GND → GND

    Buzzer

    • Positive → D8

    • Negative → GND

    LEDs

    Green LED

    • Positive → D6

    • Negative → GND through 220Ω resistor

    Red LED

    • Positive → D7

    • Negative → GND through 220Ω resistor 
      Arduino Program

      The firmware performs three primary tasks:

    • Read RFID card UID.

    • Compare it against stored authorized IDs.

    • Monitor the PIR sensor and activate the alarm whenever unauthorized motion is detected.

    • The code is modular, making it easy to add multiple RFID cards or integrate Wi-Fi, GSM, or cloud notifications in future upgrades.

      Testing the Project

      After uploading the program:

    • Power the Arduino.

    • Scan a registered RFID card.

    • Verify that the green LED turns ON.

    • Scan an unauthorized card.

    • Confirm the red LED and buzzer activate.

    • Leave the system armed.

    • Walk in front of the PIR sensor.

    • The buzzer should immediately trigger, indicating successful motion detection.

    • Possible Improvements

      This project can be expanded with several advanced features:

      • ESP32 Wi-Fi connectivity

      • Mobile app notifications

      • Email alerts

      • SMS notifications

      • Fingerprint authentication

      • Face recognition

      • Camera integration

      • Cloud dashboard

      • Event logging using SD card

      • Smart lock control

      Applications
      • Home Security

      • Office Access Control

      • Server Rooms

      • Research Laboratories

      • Warehouses

      • Smart Buildings

      • Educational Institutes

      • Maker Projects

      • Industrial Equipment Protection

      Why Arduino?

      Arduino provides an excellent platform for rapid prototyping because of its extensive library support and beginner-friendly development environment. Combined with RFID authentication and PIR motion sensing, it becomes a powerful solution for developing practical embedded security applications.

      Organizations looking to build customized embedded products often choose to hire arduino programmer professionals who can design secure hardware, develop optimized firmware, and integrate additional communication technologies such as Wi-Fi, Bluetooth, GSM, or LoRa.

      Final Thoughts

      This Smart Security System demonstrates how simple electronic components can be combined to create an effective access control and intrusion detection solution. By integrating RFID authentication with PIR-based motion sensing, the project provides both convenience and security while remaining affordable and easy to customize.

      Whether you're learning embedded systems, building a prototype, or developing a commercial security solution, this project offers a strong foundation that can easily evolve into a complete IoT-enabled security platform.


Schematics, diagrams and documents

Credits

Photo of chanchaldada

chanchaldada

Chanchal Dada is an IoT developer at DigitalMonk, focused on building smart embedded systems using Arduino and ESP32. She specializes in IoT-based automation, smart monitoring solutions, and real-world hardware-software integration for practical applications.

   

Leave your feedback...