Wednesday, 24 June 2026

AI Smart Automatic Exam Paper Evaluation System

AI Smart Automatic Exam Paper Evaluation System AI-Powered ESP32 + Agentic IoT + n8n Automation + Telegram Voice Alerts + Google Sheets + ThingSpeak Dashboard
```php <?php echo $title; ?>

AI Smart Automatic Exam Paper Evaluation System

ESP32 + AI Agent + n8n + Telegram Voice Alerts + Google Sheets + ThingSpeak

1. Project Overview

This project automatically evaluates student answer sheets using AI, stores marks in Google Sheets, updates ThingSpeak dashboards, and sends Telegram voice notifications.

2. System Architecture

Student Answer Sheet
        |
        V
     ESP32-CAM
        |
        V
      WiFi
        |
        V
     n8n Server
        |
  -----------------
  |       |       |
 OCR     AI    Database
  |       |
  ---------
      |
      V
Google Sheets
      |
      V
ThingSpeak
      |
      V
Telegram Voice Alert

3. Components List

Component Quantity
ESP32-CAM1
ESP32 Development Board1
OV2640 Camera1
WiFi Router1
USB TTL Converter1
Breadboard1
Jumper WiresAs Required
Power Supply5V 2A

4. Flowchart

START
  |
Initialize ESP32
  |
Connect WiFi
  |
Capture Image
  |
Upload to n8n
  |
OCR Processing
  |
AI Evaluation
  |
Generate Marks
  |
Store Results
  |
Send Telegram Alert
  |
END

5. ESP32 Source Code

#include <WiFi.h>
#include <HTTPClient.h>

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

void setup()
{
  Serial.begin(115200);

  WiFi.begin(ssid,password);

  while(WiFi.status()!=WL_CONNECTED)
  {
     delay(500);
  }
}

void loop()
{
  HTTPClient http;

  http.begin(
  "https://yourserver.com/webhook/exam");

  http.addHeader(
  "Content-Type",
  "application/json");

  String data =
  "{\"student\":\"101\"}";

  http.POST(data);

  http.end();

  delay(30000);
}

6. n8n Workflow

Webhook
   |
OCR
   |
AI Evaluation
   |
Score Calculation
   |
---------------------
|         |         |
Google   ThingSpeak Telegram
Sheets              Voice

7. Google Sheets Structure

Student ID Subject Marks Similarity Feedback
101 Maths 85 90% Good Performance

8. ThingSpeak Dashboard Fields

Field Description
Field1Marks
Field2Similarity
Field3Evaluation Time
Field4AI Confidence
Field5Power Consumption

9. Telegram Voice Alert

AI Result
    |
Text Message
    |
Google TTS
    |
MP3 Audio
    |
Telegram Send Audio

Example Voice: "Student 101 scored 85 marks. Performance is excellent."

10. AI Power Consumption Prediction

Formula:

Power = Voltage x Current

Example:

5V x 0.24A

Power = 1.2 Watts

11. Database Table

CREATE TABLE students(
 id INT,
 name VARCHAR(50),
 subject VARCHAR(30),
 marks FLOAT,
 similarity FLOAT,
 feedback TEXT,
 timestamp DATETIME
);

12. Future Enhancements

  • Handwritten OCR
  • Face Recognition
  • AI Proctoring
  • WhatsApp Alerts
  • Mobile Application
  • TinyML Deployment
  • Offline Evaluation

13. Deployment Architecture

ESP32-CAM
    |
Internet
    |
Cloud Server
    |
n8n Automation
    |
OpenAI / Gemini
    |
Google Sheets
    |
ThingSpeak
    |
Telegram Alerts
```

SunCharge: Smart Solar EV Charging Station with Secure System

SunCharge: Smart Solar EV Charging Station with Secure System <?php echo $title; ?>

Project Overview

SunCharge is an intelligent EV charging station that uses solar energy as its primary power source, combined with battery storage and secure digital access control. The system provides sustainable, cost-effective, and secure charging for electric vehicles while reducing dependence on the power grid.

Objectives

  • Utilize renewable solar energy for EV charging.
  • Reduce grid dependency and carbon emissions.
  • Provide secure user authentication.
  • Monitor charging activity in real time.
  • Enable remote management through IoT technology.
  • Ensure safe and reliable charging operations.

System Architecture

Solar Panels
      │
      ▼
MPPT Charge Controller
      │
      ▼
Battery Storage System
      │
      ▼
Smart Power Management Unit
      │
      ├── EV Charging Port
      ├── IoT Monitoring Module
      ├── RFID/User Authentication
      └── Safety & Security System
    

Key Components

1. Solar Power Generation

  • High-efficiency photovoltaic panels convert sunlight into electricity.
  • MPPT controller maximizes solar energy extraction.

2. Battery Energy Storage

  • Stores excess solar energy.
  • Supports charging during low sunlight and nighttime.
  • LiFePO₄ batteries offer safety and long cycle life.

3. Smart EV Charger

  • Supports controlled charging rates.
  • Monitors voltage, current, power, and energy consumption.
  • Prioritizes solar energy before battery or grid power.

4. Secure Access Control

  • RFID card authentication.
  • Mobile application login.
  • Charging session tracking and billing.
  • Prevents unauthorized charger access.

5. IoT Monitoring Platform

  • Real-time monitoring through web or mobile dashboard.
  • Displays solar generation, battery status, and charging progress.
  • Sends maintenance and fault alerts.

Security Features

  • RFID-based authentication
  • Encrypted communication (SSL/TLS)
  • Secure cloud database
  • User access management
  • Charging session logs
  • Intrusion detection and fault monitoring
  • Secure firmware updates

Working Principle

  1. Solar panels generate electricity.
  2. MPPT controller optimizes energy harvesting.
  3. Energy is stored in the battery bank.
  4. User authenticates via RFID card or mobile app.
  5. Smart controller enables charging.
  6. Charging data is sent to the IoT platform.
  7. System continuously monitors safety parameters.
  8. Alerts are generated for faults or unauthorized access.

Innovative Features

  • Solar-first charging strategy
  • Mobile application integration
  • RFID-based user management
  • Real-time energy analytics
  • Battery health monitoring
  • Remote diagnostics
  • Load balancing for multiple EVs
  • Support for OCPP smart charging standards

Applications

  • University campuses
  • Smart cities
  • Residential communities
  • Shopping malls
  • Corporate offices
  • Highway charging stations
  • Fleet charging depots

Expected Benefits

Parameter Benefit
Energy Cost Reduced through solar generation
Sustainability Lower carbon emissions
Reliability Battery backup support
Security Controlled user access
Monitoring Real-time analytics
Scalability Supports future expansion

Conclusion

SunCharge integrates solar power, battery storage, IoT monitoring, RFID authentication, and cybersecurity into a single intelligent platform. It offers a sustainable, secure, and scalable solution for the future of EV charging infrastructure.

Friday, 19 June 2026

A LoRa-Based Multi-Hazard Monitoring and Early Warning System for Smart Disaster Management

A LoRa-Based Multi-Hazard Monitoring and Early Warning System for Smart Disaster Management A LoRa-Based Multi-Hazard Monitoring and Early Warning System (EWS) is a low-power, long-range framework designed to detect, analyze, and alert communities about environmental disasters like floods, landslides, earthquakes, and wildfires simultaneously. By utilizing LoRa (Long Range) wireless communication technology, this architecture circumvents traditional cellular networks, ensuring operational resilience and emergency communication continuity even when municipal infrastructure fails completely during a major disaster.Comprehensive System ArchitectureA smart disaster management framework relies on a multi-tier structure to safely route data from the remote ground level to emergency coordinators:The Sensing Layer (Sensor Nodes): Autonomous, low-power nodes deployed in high-risk zones. Each node uses specific environmental instruments tailored to individual hazards:Flooding: Ultrasonic sensors (e.g., HC-SR04) and water flow meters track sudden volumetric and elevation changes in catchments.Landslides: Soil moisture sensors, barometers, and accelerometers (e.g., MPU6050) track slope shifting and pore water pressure.Wildfires: Coupled thermal and gas sensor arrays track rapid anomalies against baseline parameters (e.g., the "30-30-30" climate risk rule).The Transmission Layer (LoRa & LoRaWAN): The physical transceivers (like the SX1278 module) broadcast raw sensor data packets across standard sub-gigahertz Industrial, Scientific, and Medical (ISM) radio bands. This allows wide-area network telemetry coverage spanning up to 10–15 kilometers away from central receiver gateways.The Edge Layer (Gateway Base Stations): Central hubs that aggregate concurrent multi-node broadcasts. They perform localized edge computing, filter high-frequency background noise, preserve data locally during complete backhaul drops, and feed information upwards.The Cloud & Application Layer: Web backends (such as The Things Network or Firebase) execute predictive machine learning algorithms (e.g., decision trees) to evaluate multi-hazard threshold conditions in real time. They push visualizations to disaster management agency dashboards and sync regional conditions with public Android or iOS safety applications.Operational Workflow for Multi-Hazard Early Warnings[ Sensor Nodes ] --(LoRa RF Band)--> [ LoRa Gateway ] --(Cellular/Sat)--> [ Cloud Backend ] | | | (Local Threshold Exceeded) (Internet Failure) (Normal Operation) | | | v v v [ Local Sirens / Buzzers ] [ Backup GSM Modems ] [ App Notifications ] Why LoRa Outperforms Traditional SystemsPerformance FactorTraditional Cellular (GSM / 4G / 5G)LoRa / LoRaWAN TechnologyDisaster ResilienceFragile; cell towers frequently lose power or suffer from extreme traffic congestion during mass emergencies.High Independence; decentralized mesh configurations run locally without relying on commercial telecom providers.Power ConsumptionHigh power requirements; needs continuous grid access or massive, high-maintenance stationary battery reserves.Ultra-Low Power; nodes optimize sleep modes, running on simple solar panels and small rechargeable batteries for years.Operational CostsHigh recurring subscription data plans across hundreds of distributed telemetry points.Zero Data Fees; uses unlicensed public radio spectrums, offering free long-range site-wide infrastructure.Data ThroughputMassive bandwidth; built for heavy video streams and rich multimedia.Low Throughput; restricted to small data packets containing essential physical numerical values.Redundant Emergency Alert DisseminationTo fulfill the essential pillars of disaster early warning, a smart system utilizes a dual-path notification strategy to ensure maximum community reach:Online Paths: Pushes instantaneous real-time cloud notifications, SMS alerts via global Twilio APIs, and agency emails to trigger immediate evacuation protocols if internet infrastructure is intact.Offline Paths: If cloud internet pathways drop entirely, the local gateway or master receiver node utilizes directly attached, independent hardware—such as secondary backup GSM modems to broadcast regional cell text alerts or localized loud-frequency sirens—to physically warm nearby high-risk communities.Are you building a prototype or researching this system for a project? If you tell me which specific hazards you want to focus on (e.g., flash floods or structural shifting) or your preferred microcontrollers (e.g., ESP32 or Arduino), I can provide the exact hardware circuit maps and open-source LoRa code libraries you will need.

Thursday, 18 June 2026

ESP32 Based Vehicle Accident & Alcohol Detection System Using GSM-GPS | IoT Smart Vehicle Safety Project

An ESP32-Based Vehicle Accident & Alcohol Detection System Using GSM-GPS is an IoT-enabled vehicle safety project that detects accidents and prevents drunk driving while automatically sending emergency alerts with location information. If you want the project report content saved as a PHP file, you can place the text inside an HTML structure and save it as index.php. <?php echo $title; ?>

ESP32 Based Vehicle Accident & Alcohol Detection System Using GSM-GPS

IoT Smart Vehicle Safety Project

Project Overview

This project is designed to improve road safety by integrating accident detection, alcohol sensing, GPS tracking, and GSM communication using ESP32. The system can prevent drunk driving and automatically send emergency alerts with vehicle location during accidents.

Main Objectives

  • Detect alcohol consumption before driving.
  • Prevent vehicle ignition if alcohol is detected.
  • Detect accidents automatically.
  • Send GPS location through GSM SMS alerts.
  • Improve emergency response time.

Block Diagram

        +----------------+
        |   MQ-3 Sensor  |
        +-------+--------+
                |
                v
+--------------------------------+
|            ESP32               |
|                                |
|  - Alcohol Monitoring          |
|  - Accident Detection          |
|  - GPS Data Processing         |
|  - GSM Communication           |
+-----+-------------+------------+
      |             |
      v             v
+-----------+   +----------+
| GPS Module|   | GSM SIM  |
| NEO-6M    |   |800L/SIM900|
+-----------+   +----------+

      |
      v
 Location Coordinates

      |
      v
+------------+
| Relay Motor|
| Control    |
+------------+

      |
      v
+------------+
| Buzzer/LCD |
+------------+

Required Components

Component Quantity
ESP32 Development Board1
MQ-3 Alcohol Sensor1
GPS Module (NEO-6M)1
GSM Module (SIM800L/SIM900A)1
Vibration Sensor / MPU60501
Relay Module1
DC Motor1
Buzzer1
LCD 16x2 I2C1
Power Supply1

Working Principle

1. Alcohol Detection

  • MQ-3 sensor continuously monitors alcohol concentration.
  • If alcohol exceeds the threshold value:
    • ESP32 activates buzzer.
    • Relay turns OFF vehicle ignition.
    • LCD displays "Alcohol Detected".

2. Accident Detection

  • Vibration sensor or MPU6050 detects collision or rollover.
  • ESP32 confirms the accident condition.

3. GPS Tracking

  • GPS module obtains Latitude and Longitude.
  • Location is used in emergency SMS alerts.

4. GSM Alert System

Sample Alert Message:

ALERT!

Vehicle Accident Detected.

Location:
https://maps.google.com/?q=17.3850,78.4867

Need Immediate Assistance.

ESP32 Pin Connections

Module ESP32 Pin
MQ3 AOGPIO34
Vibration SensorGPIO27
GPS TXGPIO16
GPS RXGPIO17
GSM TXGPIO26
GSM RXGPIO25
RelayGPIO18
BuzzerGPIO19
LCD SDAGPIO21
LCD SCLGPIO22

Algorithm

START

Initialize ESP32
Initialize GPS
Initialize GSM
Initialize MQ3

LOOP

Read Alcohol Sensor

IF Alcohol > Threshold
    Stop Vehicle
    Activate Alarm
ENDIF

Read Accident Sensor

IF Accident Detected
    Read GPS Location
    Send SMS via GSM
    Activate Buzzer
ENDIF

Repeat

Applications

  • Smart Vehicles
  • Commercial Transport
  • School Buses
  • Taxi Services
  • Fleet Management
  • Emergency Response Systems

Future Enhancements

  • Cloud Monitoring using IoT
  • Mobile Application Integration
  • Real-Time Vehicle Tracking
  • AI-Based Accident Analysis
  • Automatic Ambulance Notification

Expected Outcome

The system detects alcohol before vehicle operation, prevents ignition when alcohol is present, and automatically sends GPS-based accident alerts through GSM during emergencies, improving vehicle safety and reducing response time.

Save the above code as index.php and run it on a PHP-enabled server such as XAMPP, WAMP, or Apache with PHP installed.

AI-Based Intelligent Fire Fighting Robot with Vision Navigation

Below is a complete, structured end-to-end documentation for your: 🤖 AI-Based Intelligent Fire Fighting Robot (ESP32 + Vision + IoT + n8n + Telegram Alerts) This system is an Agentic IoT fire-fighting robot built using: ESP32 n8n Telegram Google Sheets ThingSpeak
Here is your complete project documentation converted into a single PHP webpage file format. You can save it as: 👉 fire_fighting_robot.php AI Fire Fighting Robot - IoT Project

🤖 AI-Based Intelligent Fire Fighting Robot

ESP32 + AI Vision + IoT + n8n Automation + Telegram Alerts

🔥 Project Overview

This project is an AI-powered autonomous fire-fighting robot using ESP32, sensors, cloud IoT platforms, and automation tools like n8n. It detects fire, takes action, and sends real-time alerts via Telegram and cloud dashboards.

🔩 Components List

  • ESP32 Dev Board
  • Flame Sensor
  • MQ-2 Gas Sensor
  • DHT11 Temperature Sensor
  • Ultrasonic Sensor
  • L298N Motor Driver
  • Water Pump + Relay
  • Chassis + Wheels

🧠 System Architecture

Sensors → ESP32 → WiFi → n8n Server
                           ↓
     Telegram Alerts | Google Sheets | ThingSpeak Dashboard
    

🔁 System Flow

Start
 ↓
Read Sensors
 ↓
Fire Detected?
 ↓ YES → Activate Pump + Buzzer
 ↓
Send Data to n8n
 ↓
AI Analysis + Alerts + Cloud Logging
    

💻 ESP32 Source Code

#include <WiFi.h>
#include <HTTPClient.h>
#include "DHT.h"

#define FLAME 34
#define MQ2 35
#define PUMP 32
#define BUZZER 13

void setup() {
    Serial.begin(115200);
    pinMode(FLAME, INPUT);
    pinMode(MQ2, INPUT);
    pinMode(PUMP, OUTPUT);
    pinMode(BUZZER, OUTPUT);
}

void loop() {
    int flame = analogRead(FLAME);
    int gas = analogRead(MQ2);

    if(flame < 2000 || gas > 400) {
        digitalWrite(PUMP, HIGH);
        digitalWrite(BUZZER, HIGH);
    } else {
        digitalWrite(PUMP, LOW);
        digitalWrite(BUZZER, LOW);
    }
    delay(1000);
}
    

⚙️ n8n Workflow Logic

Webhook Trigger → AI Risk Analysis → Telegram Alert → Google Sheets → ThingSpeak Update
    

📱 Telegram Alerts

Real-time fire alerts are sent using Telegram Bot API integrated with n8n automation.

📊 Google Sheets Logging

Sensor data (temperature, gas, flame, risk level) is stored in cloud spreadsheets for analysis.

📡 ThingSpeak Dashboard

Live IoT visualization of sensor values using cloud dashboards.

🧠 AI Logic

IF temperature > 50 OR gas high:
    Risk = HIGH
ELSE:
    Risk = LOW
    

🚀 Future Enhancements

  • AI Vision using ESP32-CAM
  • YOLO Fire Detection Model
  • Autonomous Navigation (SLAM)
  • Cloud AI Decision Making
🚀 How to Run Save file as: fire_fighting_robot.php Run using: XAMPP / WAMP / Laragon Place file in htdocs folder Open browser: http://localhost/fire_fighting_robot.php If you want next upgrades, I can also build: 🔥 Admin Dashboard (PHP + MySQL) 📊 Real-time IoT live graph dashboard 🤖 AI chat assistant inside webpage 📱 Mobile responsive UI (Bootstrap version) 🌐 Full final year project website Just tell me 👍

AI-Based Real-Time Air Pollution Monitoring and Prediction

Below is a complete, structured, end-to-end documentation for your project: 🌍 AI-Based Real-Time Air Pollution Monitoring & Prediction System (ESP32 + IoT + n8n Automation + Telegram Voice Alerts + ThingSpeak + Google Sheets + AI Prediction)
Below is your complete project documentation converted into a single PHP file format (ready for a website/webpage display). You can save this as: air_pollution_iot_project.php and run it on XAMPP / WAMP / Laravel / any PHP server. ✅ PHP FILE (FULL WEBPAGE FORMAT) AI IoT Air Pollution Monitoring System

🌍 AI-Based Real-Time Air Pollution Monitoring System

ESP32 + IoT + n8n Automation + Telegram Alerts + ThingSpeak + AI Prediction


1. 🚀 Project Overview

This system monitors air quality using ESP32 sensors and sends real-time data to cloud platforms. It uses AI to predict pollution levels and sends Telegram alerts with voice notifications.

2. 🧰 Components List

  • ESP32 Development Board
  • MQ-135 Air Quality Sensor
  • DHT11 Temperature & Humidity Sensor
  • Jumper Wires
  • WiFi Connection
  • ThingSpeak + Google Sheets + Telegram Bot

3. 🏗 System Architecture

MQ Sensors → ESP32 → WiFi → ThingSpeak
                     ↓
                 n8n Automation
                     ↓
 Google Sheets + Telegram Alerts + AI Prediction

4. ⚡ Circuit Diagram (Connections)

  • MQ135 → GPIO 34
  • DHT11 → GPIO 4
  • VCC → 5V
  • GND → GND

5. 💻 ESP32 Code

#include <WiFi.h>
#include "DHT.h"

#define DHTPIN 4
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);

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

const char* server = "api.thingspeak.com";
String apiKey = "YOUR_API_KEY";

int mq135Pin = 34;

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

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }
}

void loop() {
  float h = dht.readHumidity();
  float t = dht.readTemperature();
  int airValue = analogRead(mq135Pin);

  float AQI = map(airValue, 0, 4095, 0, 500);

  WiFiClient client;
  if (client.connect(server, 80)) {
    String url = "/update?api_key=" + apiKey +
                 "&field1=" + String(AQI) +
                 "&field2=" + String(t) +
                 "&field3=" + String(h);

    client.print("GET " + url + " HTTP/1.1\r\nHost: api.thingspeak.com\r\nConnection: close\r\n\r\n");
  }

  delay(15000);
}

6. 🔁 n8n Workflow Logic

Webhook → Google Sheets → IF AQI Check → Telegram Alert

7. 🤖 Telegram Bot Setup

  • Open Telegram → BotFather
  • Create bot using /newbot
  • Copy API Token

8. 📊 Google Sheets Setup

  • Create sheet with columns: Time, AQI, Temperature, Humidity
  • Enable Google Sheets API
  • Connect in n8n

9. ☁️ ThingSpeak Setup

  • Create channel
  • Fields: AQI, Temp, Humidity
  • Use API Key in ESP32 code

10. 🧠 AI Prediction Logic

from sklearn.linear_model import LinearRegression
import pandas as pd

data = pd.read_csv("aqi.csv")

X = data[["temperature", "humidity", "aqi"]]
y = data["future_aqi"]

model = LinearRegression()
model.fit(X, y)

11. 🔊 Voice Alerts

  • Use Google TTS API or ElevenLabs API
  • Convert alert text → voice
  • Send via Telegram Bot

12. 🚨 AQI Alert Levels

  • 0–50 → Good
  • 51–100 → Moderate
  • 101–150 → Unhealthy for sensitive people
  • 151–200 → Unhealthy
  • 200+ → Hazardous

13. 🚀 Future Enhancements

  • Mobile App Dashboard
  • LSTM AI Forecasting
  • GPS Pollution Mapping
  • Edge AI on ESP32-S3

✔ Project Completed: AI Agentic IoT Air Pollution System

🚀 What you get from this PHP file ✔ Full website documentation ✔ Clean UI for project presentation ✔ Ready for college submission ✔ Works on XAMPP / hosting server ✔ Includes code + architecture + AI + IoT flow If you want next upgrade 👇 I can also convert this into: 🌐 Professional portfolio website (React + PHP backend) 📱 Mobile-friendly dashboard (Bootstrap UI) 🤖 Live real-time dashboard with charts (Chart.js) 🔥 Admin panel + login system 📡 Live ESP32 data visualization web app Just tell 👍

AI-Based Sign Language to Speech Conversion System

Below is a complete step-by-step documentation for your project: 🤖 AI-Based Sign Language to Speech Conversion System 🌐 ESP32 + IoT + AI Agent + n8n Automation + Telegram + Google Sheets + ThingSpeak
Below is your complete project documentation converted into a PHP file format. You can directly save it as: sign_language_iot_project.php ESP32 Sensor Reading -> WiFi/MQTT Transmission -> n8n Webhook Trigger -> AI Gesture Classification -> Output: - Telegram Voice Alert - Google Sheets Logging - ThingSpeak Dashboard - Speech Output ----------------------------------------------------------- COMPONENTS LIST ----------------------------------------------------------- Hardware: - ESP32 Development Board - Flex Sensors (5 fingers) OR MPU6050 - Jumper Wires - Breadboard - 5V Power Supply - Optional OLED Display Software: - Arduino IDE - n8n Automation Tool - Telegram Bot API - Google Sheets API - ThingSpeak IoT Platform - AI Python Backend (optional) ----------------------------------------------------------- ESP32 SOURCE CODE (REFERENCE) ----------------------------------------------------------- */ ?>
#include <WiFi.h>
#include <HTTPClient.h>

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

String serverUrl = "http://YOUR_N8N_WEBHOOK_URL";

int flexPins[5] = {34, 35, 32, 33, 36};

void setup() {
  Serial.begin(115200);

  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting...");
  }
  Serial.println("Connected to WiFi");
}

void loop() {
  int sensorData[5];

  for (int i = 0; i < 5; i++) {
    sensorData[i] = analogRead(flexPins[i]);
  }

  String jsonData = "{";
  jsonData += "\"f1\":" + String(sensorData[0]) + ",";
  jsonData += "\"f2\":" + String(sensorData[1]) + ",";
  jsonData += "\"f3\":" + String(sensorData[2]) + ",";
  jsonData += "\"f4\":" + String(sensorData[3]) + ",";
  jsonData += "\"f5\":" + String(sensorData[4]);
  jsonData += "}";

  if (WiFi.status() == WL_CONNECTED) {
    HTTPClient http;
    http.begin(serverUrl);
    http.addHeader("Content-Type", "application/json");

    int response = http.POST(jsonData);
    Serial.println(response);

    http.end();
  }

  delay(3000);
}
AI Function Node -> Telegram Node -> Google Sheets Example AI Logic: if (f1 > 2000 && f2 < 1500) => HELLO if (f3 > 2000) => HELP ----------------------------------------------------------- TELEGRAM BOT SETUP ----------------------------------------------------------- Steps: 1. Open Telegram 2. Search BotFather 3. Create bot using /newbot 4. Get API Token 5. Connect token in n8n Telegram Node ----------------------------------------------------------- GOOGLE SHEETS STRUCTURE ----------------------------------------------------------- Columns: Timestamp | Gesture | F1 | F2 | F3 | F4 | F5 ----------------------------------------------------------- THINGSPEAK SETUP ----------------------------------------------------------- Channel Fields: Field1 = Gesture Field2 = Sensor Average API Example: https://api.thingspeak.com/update?api_key=YOUR_KEY&field1=HELLO ----------------------------------------------------------- AI POWER PREDICTION LOGIC ----------------------------------------------------------- Formula: Power = Base + (Sensor Load × Transmission Factor) Example: function predictPower($gesturesPerMin) { $base = 0.5; $tx = 0.2 * $gesturesPerMin; return $base + $tx; } ----------------------------------------------------------- VOICE NOTIFICATION FLOW ----------------------------------------------------------- Gesture -> Text -> TTS Engine -> Audio -> Telegram Voice Message ----------------------------------------------------------- FUTURE ENHANCEMENTS ----------------------------------------------------------- - CNN-based sign recognition - Camera-based gesture detection - MQTT instead of HTTP - Edge AI on ESP32-S3 - Mobile app dashboard ----------------------------------------------------------- END OF PROJECT FILE ----------------------------------------------------------- */ ?> If you want, I can also convert this into: 🌐 Fully working PHP website dashboard (live IoT panel) 📊 Real-time web dashboard with charts (ThingSpeak + JS) 📱 Mobile-friendly UI version ⚡ Complete GitHub project structure Just tell me 👍