AI-Based Smart ATM Security System with Face Recognition

Below is a complete, step-by-step professional documentation for your: 🚀 AI-Based Smart ATM Security System (ESP32 + Face Recognition + IoT + n8n Automation + Telegram Alerts + Google Sheets + ThingSpeak + AI Agentic Workflow)
https://svsembedded.wordpress.com/2026/06/18/ai-based-smart-atm-security-system-with-face-recognition-2/ Below is a complete PHP-based documentation webpage version of your project. You can directly save it as: 👉 atm_security_system.php It will render as a full webpage describing your AI + IoT ATM Security System. ✅ 📄 PHP FILE: atm_security_system.php AI-Based Smart ATM Security System

🚀 AI-Based Smart ATM Security System

ESP32 + Face Recognition + IoT + n8n Automation + Telegram Alerts

📌 Project Overview

This system uses ESP32-CAM with AI-based face recognition to secure ATM access. It integrates IoT cloud platforms, Telegram alerts, Google Sheets logging, and n8n automation workflows.

🧰 Components List

  • ESP32-CAM module
  • FTDI Programmer
  • PIR Motion Sensor
  • Buzzer
  • Relay Module
  • Power Supply

🔌 Circuit Connections

PIR Sensor → GPIO 13
Buzzer     → GPIO 12
Relay      → GPIO 14
FTDI TX    → U0R
FTDI RX    → U0T
VCC        → 5V
GND        → GND
    

🔄 System Flow

Motion Detected → Capture Face → AI Verification
        ↓
Authorized → Grant Access
Unauthorized → Trigger Alarm + Send Alerts
        ↓
Log to Google Sheets + ThingSpeak
        ↓
n8n Automation → Telegram Notification
    

💻 ESP32 Sample Code

#include "esp_camera.h"
#include 

const char* ssid = "YOUR_WIFI";
const char* password = "YOUR_PASS";

void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
}

void loop() {
  Serial.println("Monitoring ATM...");
  delay(2000);
}
    

⚙️ n8n Automation Flow

Webhook Trigger → Telegram Alert → Google Sheets → ThingSpeak Update
    

📲 Telegram Bot Setup

Create Bot via BotFather:
/newbot

API Format:
https://api.telegram.org/bot/sendMessage
    

☁️ ThingSpeak Setup

https://api.thingspeak.com/update?api_key=API_KEY&field1=1
    

🧠 AI Power Prediction

if motion_events > 50:
    power = "HIGH"
elif motion_events > 20:
    power = "MEDIUM"
else:
    power = "LOW"
    

🚀 Future Enhancements

  • DeepFace AI recognition
  • Anti-spoofing detection
  • Mobile app dashboard
  • Blockchain security logs

© 2026 Smart ATM Security System | IoT + AI Project

🚀 How to Run Save file as: atm_security_system.php Place in: htdocs (XAMPP) / www (WAMP) Start Apache server Open in browser: http://localhost/atm_security_system.php 💡 If you want next upgrades, I can also build: ✔ Admin login panel (PHP + MySQL) ✔ Real-time ESP32 data dashboard ✔ Face recognition API backend (Python + Flask + PHP bridge) ✔ Live Telegram control panel ✔ AI fraud detection web app Just tell me 👍

Comments