ECO SYNC : Smart Environmental Monitoring System for Safer & Sustainable Workspaces
by SUCHIR2004 in Circuits > Sensors
54 Views, 0 Favorites, 0 Comments
ECO SYNC : Smart Environmental Monitoring System for Safer & Sustainable Workspaces
🌍 EcoS: Smart Environmental Monitoring for a Safer, Smarter World
What if unsafe environmental conditions could be detected before they become dangerous?
EcoS is an intelligent environmental monitoring system designed to make workspaces safer and more sustainable by continuously tracking critical factors like air quality, temperature, humidity, pressure, and light. Instead of relying on manual checks or delayed responses, EcoS delivers real-time insights and instant visual alerts through its smart LED system—turning invisible risks into immediate, actionable signals.
🚀 Key Benefits
- ⚡ Real-time monitoring of multiple environmental conditions
- 🚨 Instant visual alerts for faster response
- 🧠 Smart insights instead of raw, confusing data
- 🌐 Remote access through a live web dashboard
- 🔧 Scalable design for different environments
- 👷 Improves safety, awareness, and decision-making
Built with scalability and accessibility in mind, EcoS goes beyond a single-use prototype. It can be deployed across industrial sites, public spaces, and shared environments where safety and awareness matter most. By combining IoT technology with simple, effective design, this project aims to reduce risks, improve well-being, and contribute to a future where environments actively protect the people within them.
This isn’t just monitoring—it’s proactive safety, reimagined.
Supplies
ELECTRONIC COMPONENTS:
- NodeMCU ESP8266 (1x)
- DHT11 Temperature & Humidity Sensor (1x)
- MQ135 Gas Sensor (1x)
- BMP180 / BMP280 Pressure Sensor (1x)
- SSD1306 OLED Display (I2C, 128x64) (1x)
- LDR Light Sensor Module (1x)
- LEDs (Red, White, Blue) (3x)
-9 x 15 cm Universal PCB Prototype Board Double-Sided 2.54mm Hole Pitch
SOFTWARE & TOOLS:
- Arduino IDE
- ESP8266 Board Package
- Required Libraries:
- Adafruit SSD1306
- Adafruit GFX
- DHT Sensor Library
- Adafruit BMP085
- Node.js (for dashboard as website)
Project Overview
🛠️ EcoSync Smart Environmental Monitoring System
In this project, we’ll build EcoSync, a real-time IoT-based safety system designed to monitor environmental conditions in confined and high-risk spaces like factories, tunnels, and underground environments.
The system continuously tracks critical parameters:
- 🌡️ Temperature
- 💧 Humidity
- 🌫️ Air Quality (for harmful gases)
- 🌬️ Atmospheric Pressure
- 🌙 Light/Dark conditions
But EcoSync goes beyond raw data. It interprets environmental readings and delivers clear, human-readable insights, such as:
- “HOT & HUMID”
- “AIR QUALITY POOR – VENTILATE”
- “CLEAR / RAIN LIKELY”
This makes the system practical and actionable—not just informative.
⚙️ Key Features
- 📟 OLED display for real-time local monitoring
- 🚨 Smart LED alert system for instant visual warnings
- 🌐 Web dashboard for remote access and tracking
Designed for real-world deployment, EcoSync can be adapted for:
- 🏭 Fixed installations in industrial or public environments
- 🔧 Portable setups for flexible monitoring scenarios
By the end of this project, you’ll have a complete smart monitoring system that not only collects environmental data but also translates it into meaningful safety decisions.
Setup Arduino IDE& Upload to NodeMCU (ESP8266)
In this step, we will upload the program to the NodeMCU ESP8266 so it can read sensor data, control LEDs, and host the web server for the dashboard.
🧰 1. Install Arduino IDE
Download and install the Arduino IDE from:
https://www.arduino.cc/en/software
🔌 2. Add ESP8266 Board Support
- Open Arduino IDE
- Go to File → Preferences
- In "Additional Board Manager URLs", add:
- Go to Tools → Board → Boards Manager
- Search for ESP8266 and install it
⚙️ 3. Install Required Libraries
Go to Sketch → Include Library → Manage Libraries, then install:
- Adafruit SSD1306
- Adafruit GFX
- DHT Sensor Library
- Adafruit BMP085
💻 4. Open the Project Code
- Download the code from the GitHub repository - https://github.com/Suchir2004/SurroundingECO.git
- Open the ESP8266 CODE.txt file and copy the code in Arduino IDE.
📡 5. Add Your WiFi Credentials
Find this section in the code:
Replace with your WiFi details.
🔌 6. Connect NodeMCU to Computer
- Use a USB cable
- Select correct port:
- Tools → Port → COMx
🛠️ 7. Select Board
Go to:
- Tools → Board → NodeMCU 1.0 (ESP-12E Module)
⬆️ 8. Upload the Code
Click the Upload button (→) in Arduino IDE.
Wait until you see:
📟 9. Check Output
After uploading:
- The OLED display will show system status
- It will connect to WiFi
- It will display the IP address
Example:
Circuit Connections – Wiring Sensors and Components
In this step, we will connect all sensors and components to the NodeMCU ESP8266. Make sure all connections are correct before powering the circuit.
🔌 Complete Connection Table
Components - NodeMCU Pin (overview)
- DHT11 (Data)- D5 (GPIO14)
- MQ135 (Analog)- A0
- LDR Module (Digital)- D6 (GPIO12)
- RED LED- D7 (GPIO13)
- WHITE LED- D0 (GPIO16)
- BLUE LED- D3 (GPIO0) ⚠️
- OLED SDA- D2 (GPIO4)
- OLED SCL- D1 (GPIO5)
- BMP180 / BMP280- I2C (scl - D1, sda - D2)
⚙️ Connection Details
🌡️ DHT11 Sensor
- VCC → 3.3V
- GND → GND
- Data → D5
🌫️ MQ135 Gas Sensor
- VCC → 5V or 3.3V (module dependent)
- GND → GND
- AOUT → A0
⚠️ Note: ESP8266 analog pin supports 0–1V only
Use a voltage divider if needed.
🌙 LDR Module
- VCC → 3.3V
- GND → GND
- DO → D6
📟 OLED Display (SSD1306 – I2C)
- VCC → 3.3V
- GND → GND
- SDA → D2
- SCL → D1
🌬️ BMP180 / BMP280 Sensor
- VCC → 3.3V
- GND → GND
- SDA → D2
- SCL → D1
💡 LEDs all positive terminal connection and all negative terminal connected to GND
- RED LED → D7
- WHITE LED → D0
- BLUE LED → D3
⚠️ Important Notes
- ESP8266 operates at 3.3V only
- Do NOT connect 5V directly to GPIO pins
- Double-check all GND connections
- Use resistors with LEDs (220Ω recommended)
🧪 Before Powering
✔ Check all connections
✔ Ensure no short circuits
✔ Verify correct pin mapping
Once everything is connected, your hardware setup is ready for testing in the next step.
IMPORTANT - Power the Nodemcu through USB or use a 5 volt Battery pack to power it from VIN (+) and GND (-).
*I done all my connection on a prototype board. We also can use Breadboard or custom made PCB.
Setting Up the Web Dashboard (Download, Install & Run)
In this step, we will download the web dashboard from GitHub, set it up using Node.js, and connect it to the ESP8266 for real-time monitoring.
🌐 1. Download the Project from GitHub
Open the repository:
https://github.com/Suchir2004/SurroundingECO
- Click the green Code button
- Click Download ZIP
- Save the file to your computer
📦 2. Extract (Unzip) the Project
- Right-click the downloaded ZIP file
- Select Extract Here or Extract All
💻 3. Install Node.js
Download and install Node.js from:
Verify installation in terminal:
🧑💻 4. Install and Open Project in VS Code
4.1 Install Visual Studio Code:
Download and install Visual Studio Code from:
4.2 Open your project folder in VS Code:
- Open Visual Studio Code
- Click File → Open Folder
- Select the extracted project folder
📦 5. Install Required Packages
- Open the extracted folder in Vscode.
- Terminal in VS Code and run:
This installs all dependencies for the dashboard.
🚀 6. Run the Dashboard
Start the development server:
You will see:
📡 7. Connect Dashboard to ESP8266
Open file:
Find:
Replace with your ESP8266 IP that display on the OLED:
📶 8. Connect to Same WiFi (VERY IMPORTANT ⚠️)
Make sure:
- Your ESP8266 is connected to WiFi
- Your laptop is connected to the SAME WiFi network
Otherwise, the dashboard will NOT receive data.
🌐 9. Open Dashboard in Browser
- On laptop:
- On mobile:
⚠️ 10. Fix Mobile Access (If Needed)
If mobile cannot access the dashboard:
Edit:
Then restart:
🔄 11. Verify Data Connection
Open in browser:
If JSON data appears, everything is working correctly.
🎉 Your dashboard is now fully set up and displaying real-time environmental data from the ESP8266!
System Working & Output (Real-Time Monitoring)
⚙️ In this step, we’ll see how EcoSync operates as a complete system—transforming raw sensor data into clear insights across hardware (OLED + LEDs) and a live web dashboard.
🔄 System Workflow
EcoSync follows a continuous, real-time cycle:
- Sensors capture environmental data:
- 🌡️ Temperature & Humidity (DHT11)
- 🌫️ Air Quality (MQ135)
- 🌬️ Pressure (BMP180)
- 🌙 Light Levels (LDR)
- The ESP8266 processes this data using built-in logic
- Based on conditions, the system:
- Updates the OLED display
- Triggers LED alerts
- Sends live data to the web dashboard via Wi-Fi
📟 OLED Display Output
The OLED provides quick, on-device monitoring by cycling through:
- Temperature & Humidity
- Atmospheric Pressure
- Gas Levels
- Light Status
- Smart condition summaries:
- “COMFORTABLE”
- “HOT & HUMID”
- “RAIN LIKELY”
This allows instant awareness—no phone or external device needed.
🚨 Smart LED Alert System
EcoSync uses LEDs for immediate, glanceable alerts:
- 🔴 Red LED → Activates when air quality becomes unsafe
- ⚪ White LED → Turns on in low-light or dark conditions
- 🔵 Blue LED → Blinks continuously (system status indicator)
These visual cues enable fast response without needing to read detailed data.
🌐 Web Dashboard Output
The web dashboard provides a more detailed, remote view:
- Live sensor readings
- Air quality status
- Smart environmental insights
- Graphs and trends for analysis
Data refreshes automatically every 2 seconds, ensuring continuous monitoring.
📊 Sample Output
- Temperature: 28.5°C
- Humidity: 65%
- Air Quality: Moderate
- Light: Bright
- Status: SAFE
🧠 Intelligent Insights
Instead of overwhelming users with raw numbers, EcoSync delivers simple, actionable messages:
- “AIR QUALITY POOR – VENTILATE”
- “HOT & HUMID”
- “CLEAR WEATHER”
This makes the system accessible even to non-technical users.
🌍 Real-World Impact
- Early detection of hazardous gases
- Improved safety in low-visibility conditions
- Increased environmental awareness
- Remote monitoring for proactive decision-making
🎉 EcoSync successfully combines embedded systems and modern web technologies to deliver a practical, scalable, and intelligent environmental safety solution.
Conclusion — From Data to Decisions
EcoSync goes beyond basic environmental monitoring by turning raw sensor data into meaningful, real-time insights that actually help in decision-making.
By integrating multiple sensors, intelligent processing, and clear output systems (OLED, LEDs, and a web dashboard), the project creates a complete safety solution that is both practical and scalable. It doesn’t just tell you what the environment is—it tells you what it means and what to do next.
This system demonstrates how IoT can be used not just for data collection, but for proactive safety, awareness, and smarter environments.
🚀 With further enhancements like AI-based predictions and mobile integration, EcoSync has the potential to evolve into a powerful tool for building safer and more sustainable spaces.