This Smart Home Security System uses an Arduino, PIR motion sensor, RFID module, and ESP8266 Wi-Fi module to detect unauthorized entry, send alerts, and allow secure access via RFID authentication. The system also integrates a buzzer and an LCD display for real-time status updates.
1. Components Required
Component
Quantity
Description
Arduino Uno/Nano
1
Microcontroller Board
ESP8266 Wi-Fi Module
1
For Internet connectivity
PIR Motion Sensor
1
Detects movement
RFID Module (RC522)
1
For access control
Buzzer
1
Alarm system
16×2 LCD Display (I2C)
1
Displays system status
Relay Module (5V)
1
Controls door lock
Jumper Wires
As needed
For connections
Breadboard
1
For prototyping
5V Power Supply
1
To power ESP8266 and relays
2. Circuit Diagram and Pin Connections
2.1 PIR Motion Sensor to Arduino
Sensor Pin
Arduino Pin
VCC
5V
GND
GND
OUT
D2
2.2 RFID Module (RC522) to Arduino
RFID Pin
Arduino Pin
SDA
D10
SCK
D13
MOSI
D11
MISO
D12
IRQ
Not connected
GND
GND
RST
D9
3.3V
3.3V
2.3 Buzzer and Relay to Arduino
Component
Arduino Pin
Buzzer
D3
Relay
D4
2.4 ESP8266 to Arduino
ESP8266 Pin
Arduino Pin
VCC
3.3V
GND
GND
TX
RX (via voltage divider)
RX
TX
CH_PD
3.3V
3. Code Implementation
This Arduino code integrates RFID authentication, motion detection, and remote alerts via ESP8266.
Required Libraries
MFRC522.h (for RFID module)
ESP8266WiFi.h (for Wi-Fi connection)
ESP8266WebServer.h (for web server control)
Wire.h and LiquidCrystal_I2C.h (for LCD display)
Install these libraries via Arduino Library Manager.
Hi, I'm Harshvardhan Mishra. Tech enthusiast and IT professional with a B.Tech in IT, PG Diploma in IoT from CDAC, and 6 years of industry experience. Founder of HVM Smart Solutions, blending technology for real-world solutions. As a passionate technical author, I simplify complex concepts for diverse audiences. Let's connect and explore the tech world together!
If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee!
Thank you for reading my blog! Happy learning!
Linkedin