An embedded IoT system for real-time environmental monitoring with direct business applications.
- Office Buildings: Employee health and productivity optimization
- Manufacturing: OSHA compliance and safety monitoring
- Warehouses: Equipment protection and energy efficiency
- Healthcare: Patient care environment monitoring
- Data Centers: Critical infrastructure monitoring
- Cost Savings: 15-25% HVAC energy reduction through optimization
- Compliance: Automated OSHA environmental monitoring
- Productivity: 6-9% productivity increase with optimal conditions
- Risk Mitigation: Early warning for air quality issues
- Data-Driven: Historical analytics for facility management
The Smart Environmental Monitor measures:
- Temperature (±0.1°C accuracy)
- Humidity (±2% RH accuracy)
- Air Quality (CO2, VOCs, particulates)
- Noise Level (dB measurement)
- Light Level (lux measurement)
- Real-time monitoring and alerting
- WiFi/Ethernet connectivity
- Local data logging with 30-day retention
- Cloud data synchronization
- Web dashboard and mobile app
- Configurable alert thresholds
- Battery backup for power outages
- ESP32-S3 or Raspberry Pi Pico W for WiFi connectivity
- STM32F4 series for industrial applications
- DHT22/SHT30 (Temperature/Humidity)
- MQ-135 or SGP30 (Air Quality)
- MAX4466 (Sound Level)
- BH1750 (Light Level)
- DS3231 (Real-Time Clock)
- MicroSD card for local storage
- OLED display for local status
- RGB LED for visual alerts
- Buzzer for audio alerts
- Li-Po battery backup
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Sensor HAL │ │ Data Processing │ │ Communication │
│ │────│ │────│ │
│ • Temperature │ │ • Filtering │ │ • WiFi/Ethernet │
│ • Humidity │ │ • Calibration │ │ • HTTP/MQTT │
│ • Air Quality │ │ • Alert Logic │ │ • Local Storage │
│ • Sound/Light │ │ • Analytics │ │ • Web Interface │
└─────────────────┘ └──────────────────┘ └─────────────────┘
# Install required tools
cmake --version # >= 3.16
gcc --version # >= 9.0 or clang >= 10.0
mkdir build && cd build
cmake ..
make -j4
esptool.py --port COM3 write_flash 0x1000 environmental_monitor.bin
The system uses JSON configuration files:
{
"device_id": "ENV_MONITOR_001",
"sampling_rate_ms": 5000,
"thresholds": {
"temperature": {"min": 18.0, "max": 26.0},
"humidity": {"min": 30.0, "max": 70.0},
"co2_ppm": 1000,
"noise_db": 85
},
"network": {
"wifi_ssid": "your_wifi",
"mqtt_broker": "broker.hivemq.com",
"update_interval_ms": 60000
}
}
GET /api/current
- Current sensor readingsGET /api/history/{hours}
- Historical dataPOST /api/config
- Update configurationGET /api/alerts
- Recent alerts
env/{device_id}/data
- Sensor dataenv/{device_id}/alerts
- Alert messagesenv/{device_id}/status
- Device status
- Mount device at 1.5m height away from HVAC vents
- Ensure WiFi signal strength > -70 dBm
- Configure alert thresholds per facility requirements
- Set up monitoring dashboard access
- AWS IoT Core / Azure IoT Hub compatibility
- InfluxDB for time-series data storage
- Grafana dashboards for visualization
- Email/SMS alert integration
Cost Savings Example (1000 sq ft office):
- Device cost: $150
- Installation: $100
- Annual savings: $800-1200 (energy) + $2000-3000 (productivity)
- Payback period: 2-3 months
MIT License - See LICENSE file for details