Next-Gen IoT & AI Environmental Monitoring

AI Weather Monitor

An end-to-end IoT platform collecting real-time environmental telemetry from ESP32 microcontrollers, combining live external Weather APIs, and delivering intelligent rule-based AI weather forecasts and automated alerts.

🌟 Core System Capabilities
📟

ESP32 IoT Telemetry

Continuous data acquisition from DHT11 (Temp & Humidity), MQ135 (Gas & Air Quality), Rain Sensor, and Soil Moisture sensors with sub-second transmission.

RESTful Live Telemetry

Lightweight HTTP polling streams live sensor telemetry smoothly without WebSocket restrictions on shared hosting environments.

🤖

AI Weather Predictor

Multi-parameter inference engine fusing local micro-climate sensor metrics with regional meteorological API data to predict impending atmospheric events.

🌍

Live Weather API

Integrated OpenWeatherMap API service fetching real-time global weather, wind speed, pressure, cloud cover, sunrise/sunset, and feels-like temperatures.

📈

Interactive Chart.js

Real-time responsive dynamic charting tracking temporal variations in temperature, humidity, air quality index, and soil moisture.

🛡️

Intelligent Alert Engine

Dynamic early-warning alerts for hazardous air quality, high temperature thresholds, rain detection, and agricultural soil dryness conditions.

🏗️ System Architecture & Data Flow
+------------------+ +-------------------+ +-------------------+ +--------------------+ | DHT11 (GPIO 18) | | MQ135 (GPIO 35) | |Rain Sensor(GPIO 34| |Soil Moisture(GPIO33| +--------+---------+ +---------+---------+ +---------+---------+ +---------+----------+ | | | | +---------------------------+-------------+-------------+---------------------------+ | v +--------------------------+ +----------------------+ | ESP32 Microcontroller |<----->| SSD1306 OLED Display | | (Wi-Fi 802.11 b/g/n) | | (I2C: GPIO 21 & 22) | +------------+-------------+ +----------------------+ | HTTP POST /api/sensor-data v +--------------------------+ +--------------------------+ | Node.js + Express.js |<------>| OpenWeatherMap API | | Backend Server (cPanel) | | (Global Weather Data) | +------+-------------+-----+ +--------------------------+ | | +-------------------+ +--------------------+ v v +----------------------+ +----------------------+ | MySQL Database | | Web Application (UI) | | (Persistent Storage) | | (HTTP Poll + Charts) | +----------------------+ +----------------------+
🔌 ESP32 Hardware Pinout & Interfacing
Sensor Module Sensor Type Target Parameter ESP32 GPIO Pin Interface Protocol
DHT11 Temperature & Humidity Sensor Temperature (°C) & Humidity (%) GPIO 18 Digital 1-Wire
MQ135 Hazardous Gas & Air Quality Sensor Air Quality Index / Gas Level (PPM) GPIO 35 (ADC1_CH7) Analog ADC (100k/100k Divider)
Rain Sensor Raindrop Detection Module Precipitation Status (Rain / No Rain) GPIO 34 (ADC1_CH6) Analog ADC
Soil Moisture Sensor Soil Moisture Hygrometer Volumetric Soil Moisture (%) GPIO 33 (ADC1_CH5) Analog ADC
SSD1306 OLED (128x64) OLED Graphic Display On-Device Telemetry & Status SDA: GPIO 21, SCL: GPIO 22 I2C Protocol (0x3C)