SVSEmbedded will do new innovative thoughts. Any latest idea will comes we will take that idea & implement that idea in a few days. We always encourage the students to take good ideas/projects. SVSEmbedded providing latest innovative electronics projects to B.E/B.Tech/M.E/M.Tech students. We developed thousands of projects for engineering student to develop their skills in electrical and electronics
Sunday, 31 May 2026
12.AI-Based Smart Classroom Monitoring and Attendance System
AI-Based Smart Classroom Monitoring and Attendance System
ESP32 + RFID + AI Agent + n8n Automation + Telegram Voice Alerts + Google Sheets + ThingSpeak Cloud Dashboard
AI-Based Smart Classroom Monitoring and Attendance System
ESP32 + RFID + AI Agent + n8n Automation + Telegram Voice Alerts + Google Sheets + ThingSpeak Cloud Dashboard
1. Project Overview
This project is a complete Smart Classroom Monitoring and Attendance System that automatically:
✅ Records student attendance using RFID cards
✅ Monitors classroom temperature and humidity
✅ Tracks classroom occupancy
✅ Uploads data to cloud
✅ Stores attendance in Google Sheets
✅ Sends Telegram alerts
✅ Generates AI-based insights
✅ Predicts classroom power consumption
✅ Provides voice notifications
✅ Creates a real-time dashboard using ThingSpeak
2. System Architecture
Data Flow
RFID Card
↓
ESP32 Controller
↓
WiFi Connection
↓
ThingSpeak Cloud
↓
n8n Automation
↓
Google Sheets Database
↓
Telegram Bot
↓
Voice Notification
↓
AI Analysis Agent
3. Features
Attendance Monitoring
RFID-based attendance
Automatic student identification
Real-time attendance logging
Classroom Monitoring
Temperature Monitoring
Humidity Monitoring
Occupancy Monitoring
AI Features
Attendance trend analysis
Absentee prediction
Power consumption prediction
Classroom utilization analysis
Cloud Features
ThingSpeak Dashboard
Google Sheets Storage
Telegram Notifications
Voice Alerts
4. Hardware Components
Component Quantity
ESP32 Dev Board 1
RFID RC522 Module 1
RFID Cards/Tags Multiple
DHT11 Sensor 1
IR Occupancy Sensor 1
OLED Display 0.96" 1
Buzzer 1
LEDs 2
Breadboard 1
Jumper Wires As Required
USB Cable 1
Power Supply 5V
5. ESP32 Pin Connections
RFID RC522
RC522 ESP32
SDA GPIO5
SCK GPIO18
MOSI GPIO23
MISO GPIO19
RST GPIO22
3.3V 3.3V
GND GND
DHT11
DHT11 ESP32
VCC 3.3V
GND GND
DATA GPIO4
IR Sensor
IR Sensor ESP32
VCC 3.3V
GND GND
OUT GPIO27
Buzzer
Buzzer ESP32
Positive GPIO26
Negative GND
6. Circuit Schematic
+------------------+
| ESP32 |
| |
RFID RC522 ---> | SPI Interface |
DHT11 -------> | GPIO4 |
IR Sensor ---> | GPIO27 |
Buzzer -----> | GPIO26 |
OLED -------> | I2C |
+------------------+
|
WiFi
|
Internet Cloud
|
--------------------------------
| | |
Google Sheets Telegram ThingSpeak
| | |
--------------------------------
|
AI Agent
7. Flowchart
START
|
Initialize ESP32
|
Connect WiFi
|
Read RFID Card
|
Card Detected?
|
YES
|
Identify Student
|
Read DHT11
|
Read Occupancy Sensor
|
Upload Data
|
Store Attendance
|
Trigger n8n Workflow
|
Send Telegram Alert
|
Generate Voice Message
|
Update Dashboard
|
Repeat
8. Attendance Data Format
{
"student_name":"Rahul",
"student_id":"RF001",
"attendance":"Present",
"temperature":"28",
"humidity":"65",
"occupancy":"Occupied",
"timestamp":"2026-05-31 09:15:00"
}
9. ESP32 Source Code Structure
Required Libraries
WiFi.h
HTTPClient.h
SPI.h
MFRC522.h
DHT.h
ArduinoJson.h
WiFi Configuration
const char* ssid = "YOUR_WIFI";
const char* password = "YOUR_PASSWORD";
ThingSpeak API
String apiKey = "YOUR_THINGSPEAK_KEY";
Student RFID Mapping
String card1 = "D3A12F45";
String student1 = "Rahul";
String card2 = "B4C56789";
String student2 = "Priya";
Main Program Logic
Read RFID
Read DHT11
Read Occupancy
Create JSON
Send to:
ThingSpeak
Webhook
Google Sheets
Wait
10. ThingSpeak Setup
Step 1
Create account on:
https://thingspeak.com
Step 2
Create New Channel
Fields:
Field 1 → Student ID
Field 2 → Temperature
Field 3 → Humidity
Field 4 → Occupancy
Step 3
Copy:
Write API Key
Read API Key
Channel ID
Step 4
Use API in ESP32
https://api.thingspeak.com/update
11. Google Sheets Setup
Create Sheet
Attendance_Log
Columns:
Date
Time
Student Name
Student ID
Temperature
Humidity
Occupancy
Status
12. n8n Workflow Design
Webhook
|
▼
Google Sheets Node
|
▼
AI Agent Node
|
▼
Telegram Node
|
▼
Voice Generator
13. n8n Workflow JSON Structure
{
"nodes":[
{
"name":"Webhook"
},
{
"name":"Google Sheets"
},
{
"name":"AI Agent"
},
{
"name":"Telegram"
}
]
}
14. Telegram Bot Setup
Step 1
Open Telegram
Search:
BotFather
Step 2
/newbot
Step 3
Create Bot
Example:
SmartClassroomBot
Step 4
Copy Bot Token
123456:ABCXYZ
15. Telegram Alert Example
📚 Smart Classroom Alert
Student:
Rahul
RFID:
RF001
Attendance:
Present
Temperature:
28°C
Humidity:
65%
Time:
09:15 AM
16. Voice Notification Automation
Telegram Voice Message
Generated by:
Google TTS
or
OpenAI TTS
or
ElevenLabs
Example:
Student Rahul attendance recorded successfully.
Classroom temperature is 28 degree Celsius.
17. AI Attendance Analysis
The AI Agent analyzes:
Daily Attendance
Present %
Absent %
Late %
Weekly Trends
Most active students
Frequent absentees
Attendance prediction
18. AI Power Consumption Prediction Logic
Inputs
Occupancy
Temperature
Class Duration
Fan Usage
Light Usage
Example Dataset
Students Temp Fan Light Power
10 28 ON ON 300W
25 30 ON ON 500W
40 32 ON ON 800W
Prediction Formula
Power=a(Occupancy)+b(Temperature)+c(FanUsage)+d(LightUsage)
AI estimates future classroom power requirements and identifies energy-saving opportunities.
19. AI Agent Prompts
Example Prompt:
Analyze today's attendance.
Provide:
1. Attendance %
2. Absent Students
3. Classroom Utilization
4. Energy Consumption Forecast
5. Recommendations
20. ThingSpeak Dashboard
Dashboard Widgets:
Attendance Count
Temperature Graph
Humidity Graph
Occupancy Status
Power Consumption Prediction
Attendance Trend Graph
21. Security Features
RFID Authentication
Only registered cards accepted.
Cloud Security
HTTPS APIs
Token Authentication
Telegram Bot Security
Backup
Google Sheets cloud backup.
22. Future Enhancements
AI Face Recognition
Replace RFID with camera attendance.
Classroom Behavior Analysis
Monitor student engagement.
Smart Energy Control
Automatically control:
Lights
Fans
Projectors
Voice Assistant
Classroom AI Assistant.
Mobile App
Android & iOS Application.
23. Real Deployment Guide
Classroom Installation
Mount RFID reader near classroom entrance.
Install ESP32 controller box.
Place DHT11 sensor inside classroom.
Install occupancy sensor at door.
Connect to WiFi network.
Configure ThingSpeak.
Configure n8n workflow.
Connect Telegram Bot.
Test attendance logging.
Enable AI analytics.
Final Outcome
This project creates a complete Industry 4.0 Smart Classroom platform combining:
ESP32 IoT Monitoring
RFID Attendance Tracking
AI Agent Analytics
n8n Workflow Automation
Google Sheets Database
Telegram Voice Alerts
ThingSpeak Dashboard
Power Consumption Prediction
Cloud-Based Monitoring
It is suitable for B.Tech, M.Tech, Diploma, Polytechnic, Final Year Engineering, IoT, AI & Embedded Systems projects and can be expanded into a full smart campus solution.
Subscribe to:
Post Comments (Atom)
AI-Based Real-Time Air Pollution Monitoring and Prediction
AI-Based Real-Time Air Pollution Monitoring and Prediction System ESP32 + AI Agent + IoT Cloud + n8n Automation + Telegram Voice Alerts + Go...
-
www.svsembedded.com SVSEMBEDDED svsembedded@gmail.com , CONTACT: 9491535690, 7842358459 ------------------------------------------...
-
Watch Video Demonstration Carefully Till End -- Temperature and Humidity Controller For Incubator Temperature and Humidity Controller For ...
-
Electronic KITS: DTDC Courier Proof Of Delivery Receipts - 2024 - 2023 - 2022 - 2021 - 2020 - 2019 - 2018 - 2017 - 2016...


No comments:
Post a Comment