The Gas Monitor System is an ESP32-based project designed to monitor gas levels, temperature, and vibration. It logs the sensor data, provides real-time alerts, and serves a web interface for data visualization and historical data access.
- Real-time Monitoring: Continuously monitors gas levels, temperature, and vibration.
- Data Logging: Logs sensor data to an SD card for historical analysis.
- Web Interface: Provides a web interface to view real-time data and historical data.
- Alerts: Generates alerts when sensor readings exceed predefined thresholds.
-
Hardware:
- ESP32 development board
- Gas sensor
- Temperature sensor
- Vibration sensor
- SD card module
-
Software:
- PlatformIO
- Arduino framework
-
Clone the Repository:
git clone https://github.com/s-a-usman/GasMonitorSystem.git cd GasMonitorSystem -
Open the Project in PlatformIO:
- Open PlatformIO IDE.
- Open the cloned project folder.
-
Configure Wi-Fi Credentials:
- Update the [ssid] and [password] variables in [main.cpp] with your Wi-Fi credentials.
-
Build and Upload:
- Connect your ESP32 board to your computer.
- Build and upload the project using PlatformIO.
-
Power On:
- Power on the ESP32 board. It will automatically connect to the configured Wi-Fi network.
-
Access Web Interface:
- Open a web browser and navigate to the IP address displayed in the serial monitor.
-
View Real-time Data:
- The web interface displays real-time gas levels, temperature, and vibration data.
-
View Historical Data:
- Use the time controls on the web interface to switch between live data and historical data for different time ranges (1 hour, 24 hours, 1 month).
- GET /api/data: Returns the current sensor data in JSON format.
- GET /api/historical-data?range={timeRange}: Returns historical sensor data for the specified time range (
1h,24h,1m).
- Ensure proper grounding for all electrical components.
- Regularly test sensor accuracy and calibrate if necessary.
- Follow local safety regulations for gas monitoring.
- Add remote monitoring capabilities.
- Implement additional sensors for enhanced monitoring.
- Create a mobile app interface for easier access.
- Initial release
- All functionalities implemented
- Debug system added