A smart access control system using ESP32, RFID RC522, Google Sheets, and Wi-Fi . Logs entries automatically to a Google Sheet, with green/red LED feedback for authorized/unauthorized users and alerts the admin via email for unauthorized access.
Demo Video: Watch on YouTube
- RFID-based access validation
- Real-time logging to Google Sheets via Apps Script
- Red & Green LED feedback
- Email alerts for unauthorized access
- Wi-Fi connectivity
Here's the wiring diagram for connecting ESP32 ↔ RC522 and LEDs:
Use a 220Ω resistor with each LED to avoid burning them out.
- Open your Google Sheet Create a new sheet to store RFID scan logs.
- Open Apps Script Editor Go to
Extensions→Apps Script. - Paste the Script Replace any existing code with the content from
code/sheeets_app_script.gs. - Deploy the Script
- Click
Deploy→New deployment - Select type: Web App
- Description:
RFID Logger - Execute as:
Me - Who has access:
Anyone - Click Deploy, and allow permissions.
- Click
- Copy the Web App URL
- Paste this URL into your
secrets.hfile.
- Paste this URL into your
- Keep your
secrets.hfile private — it contains credentials like Wi-Fi and email passwords.
- ESP32
- MFRC522 Arduino Library
- Google Apps Script
Feel free to fork, contribute, or get in touch if you'd like to collaborate!
