A robust temperature monitoring system built to prevent server downtime by monitoring AC performance in server rooms with real-time alerts via SMS.
Four years ago, our infrastructure consisted of two server rooms without a proper data center. Each room had 2 AC units controlled by microcontrollers, running in 4-hour cycles. AC failures would lead to rapid temperature increases causing server shutdowns and potential hardware damage.
Tmons (Temperature Monitor) - A custom-built monitoring system that:
- Continuously monitors room temperature using NodeMCU and DHT22 sensors
- Provides real-time remote monitoring through a web interface
- Sends immediate SMS alerts via company SMS gateway when temperatures exceed thresholds
- Ensures 24/7 server room climate stability
- NodeMCU ESP8266 - WiFi-enabled microcontroller
- DHT22 - High-precision temperature and humidity sensor
- OLED 128x32 Display - Local temperature display
- Power Supply - Stable 5V power source
- Enclosure - Protective casing for electronics
- Frontend: HTML5, CSS3, JavaScript
- Backend: PHP
- Database: SQLite
- Microcontroller: Arduino C++ (NodeMCU)
- SMS Integration: SMS Gateway
Real-time overview of both server rooms with current temperature, humidity, and system status
Detailed view of Room 1 with historical data, temperature trends, and AC status
Detailed view of Room 2 with historical data, temperature trends, and AC status
Configuration panel for temperature thresholds, SMS alerts, and system parameters
Complete history of all SMS notifications sent by the system
Electrical wiring diagram for NodeMCU, DHT22, and OLED display connections
Actual implementation of the monitoring unit in server room environment
- Connect DHT22 to NodeMCU (VCC, GND, Data)
- Connect OLED display to NodeMCU via I2C
- Upload Arduino code to NodeMCU
- Configure WiFi credentials in the firmware
- Deploy PHP files to web server
- Configure SQLite database path
- Set up SMS gateway integration
- Configure temperature thresholds in settings
- Real-time Monitoring: Live temperature and humidity tracking
- SMS Alerts: Instant notifications when thresholds are breached
- Historical Data: Temperature trends and history
- Remote Access: Web-based monitoring from anywhere
- Multi-room Support: Simultaneous monitoring of multiple locations
- Low Power Consumption: Energy-efficient operation
- Warning: >20°C - SMS notification sent
- Critical: >27°C - Immediate action required
- AC Failure Detection: Rapid temperature rise detection
Key configuration parameters in settings.php:
- Temperature thresholds
- SMS recipient numbers
- Data logging intervals
- SMS gateway settings
- 100% prevention of temperature-related server downtime
- Immediate response to AC failures
- 24/7 remote monitoring capability
- Cost-effective solution compared to commercial systems
Developed by Raquibul Islam(@ranacse05) to solve critical infrastructure monitoring challenges in our server rooms.
Reliable temperature monitoring that prevented countless server outages and hardware failures.