
OUR ECE 100 FINAL PROJECT WEBSITE
BY: SOFIA YANG AND ZARA MOINUDDIN
INTRODUCTION
Description: This project is essentially a monitoring system of air pollution. Due to the problems of climate change, the project we create can be used to compare to values found in the past of the detection of certain gasses in the atmosphere. The use of the Air Quality detection sensor can sense the potential higher levels of carbon dioxide out into the atmosphere.
​
Problem Statement: Develop a monitoring and notification system for logging air quality statistics and pollution and alert when logged metrics fall to unsafe levels.

RESEARCH
sensors
TEMPERATURE AND HUMIDITY SENSOR
​
Digital Output relative humidity and temperature sensor
Uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and sends a digital signal on the data pin
Power − 3-5V
Max Current − 2.5mA
Humidity − 0-100%, 2-5% accuracy
Temperature − 40 to 80°C, ±0.5°C accuracy

AIR QUALITY DETECTION SENSOR
Detects harmful gases like Ammonium, Sulfur, Benzene, and Carbon Dioxide
Included digital and analog output pins. When gas levels go over a threshold (set by potentiometer or code) limit the digital pin goes high.
Analog pin measures in PPM
Operates from 2.5V - 5V and consumes about 150 mA
Requires some preheating before it can give accurate results (30 sec - 4 min

RESEARCH (CONT)
ThingsSpeak and HTML
IoT analytics platform service that allows you to aggregate, visualize and analyze live data streams in the cloud
provides instant visualizations of data posted by your devices to ThingSpeak
HTML embed will be able to send the data to the website and have it displayed in the website.

RESEARCH (CONT)
SOURCES
Arduino - humidity sensor. Arduino Project Hub. (n.d.). Retrieved October 29, 2022, from https://create.arduino.cc/projecthub/sachendra003/arduino-humidity-sensor-288146
MQ135 Air Quality Gas Sensor Module. QuartzComponents. (n.d.). Retrieved October 29, 2022, from https://quartzcomponents.com/products/mq-135-air-quality-gas-sensor-module
Mathworks. (n.d.). Mathworks/thingspeak-arduino: Thingspeak Communication Library for Arduino, ESP8266 and ESP32. GitHub. Retrieved October 29, 2022, from https://github.com/mathworks/thingspeak-arduino
IOT based air pollution monitoring system using Arduino. IoT Based Air Pollution Monitoring System using Arduino & MQ135 Sensor. (n.d.). Retrieved October 29, 2022, from https://circuitdigest.com/microcontroller-projects/iot-air-pollution-monitoring-using-arduino
Humidity sensors. element14. (n.d.). Retrieved October 29, 2022, from https://in.element14.com/sensor-humidity-sensor-technology
Lavaa, A. (2021, October 23). Temperature and humidity sensors: Ultimate Guide. linquip. Retrieved October 29, 2022, from https://www.linquip.com/blog/temperature-and-humidity-sensors-an-ultimate/
TIMELINE
OCTOBER 28, 2022
Review proposal and required components
NOVEMBER 4, 2022
Connected the DHT11 and used an Arduino Sketch to test that it was working
NOVEMBER 11, 2022
Connected MQ135. Attempted to connect to the in lab wifi, but efforts were not successful.
NOVEMBER 18,2022
Switched to a different device and the WiFi started to connect. We then connected to ThingsSpeak and the IOT platform. Also began to make the website to be able to show our data with the HTML embed
NOVEMBER 25, 2022
No Lab
Work on final touches on website.
DECEMBER 2, 2022
Deliver final result
LIST OF TASKS
1
Breadboard the wire connections between the Arduino and sensors.
2
Write Arduino sketch to read sensor data and upload sensor values to ThingsSpeak IOT platform
3
Setup ThingsSpeak platform for data visualization and notification system.
4
Create webapp with created charts/graphs of sensor value trends.
TIMELINE/LIST OF TASKS
OVERVIEW
We stayed mostly on track and completed all our tasks. We assumed the issues with the WiFi connection would pose a problem to the timeline, but because the connection to the IOT platform did not take much time it seemed to level out anyways. Everything was basically completed before break.
HARDWARE
.png)
BREADBOARD
ARDUINO MICROCONTROLLER


DHT11
MQ135


SOFTWARE
Arduino sketch using MQSensorsLib, and DHT Unified Sensors Lib to read the sensor values.
The sketch then uses HTTP requests to stream sensor data every 2 seconds.
​Using ThingsSpeak platform, created visualizations in-platform, and a notification system.
IOT DATA DEMO
updating from the iot platform
https://thingspeak.com/channels/1921499
^ more in depth data above
FINAL EVALUATION
Completed problem statement of making a monitoring and notification system.
The biggest challenge was connecting the Wifi Shield to in-lab wifi, and writing the Http requests to stream the sensor data.
Takeaways: Learning better debugging skills, becoming more familiar with using libraries and developing code in C/C++.
CONCLUSION
Future: Develop a regression-based machine learning model to forecast future air quality based
on collected sensor values, and gain additional insights.
Applications: Use insights from analyzed data to create a solution to mitigate air pollution, or use the data to contribute to public policy decisions.

NOTIFICATION SYSTEM
extra addition to show it
emails are sent when unsafe levels are detected!