System Information
S.E.N.S.E — Sensor Enabled System for Safety & Emissions
Architecture
Controller: ESP32
Sensor: MQ-2 (sensor reading, not automatically ppm)
Actuator: MG996R servo
Alert: Telegram Bot
AI: Google Gemini
Database: Supabase PostgreSQL + Realtime
Cloud: Next.js API routes on Vercel
Intentional safety separation
Local safety logic
The ESP32 independently handles gas detection, hard gas limit, adaptive anomaly detection, emergency confirmation, valve closure, and buzzer activation.
Cloud intelligence
The web platform handles monitoring, historical storage, analytics, AI interpretation, and reporting. It has no hardware-control routes.
Offline behavior
If Wi-Fi or cloud service is unavailable, local ESP32 detection, valve closure, buzzer activation, and emergency response continue independently.