Organized
Organized
Submitted by
Dr. Vanusha D
(Assistant Professor, Computing Technologies)
DEPARTMENT OF COMPUTING
TECHNOLOGIES
COLLEGE OF ENGINEERING AND
TECHNOLOGY
SRM INSTITUTE OF SCIENCE ANDTECHNOLOGY
KATTANKULATHUR- 603 203
APRIL 2025
ACKNOWLEDGEMENTS
3
ABSTRACT
With the increasing focus on environmental sustainability and public health, the integration of
IoT and renewable energy in air quality management systems has gained significant traction.
Traditional air purification systems are often energy-intensive and lack intelligent automation
based on real-time environmental data. This project proposes a solar-powered IoT-based air
purification and monitoring system using the ESP8266 microcontroller, DHT22 temperature-
humidity sensor, MQ135 gas sensor, and an FR120N MOSFET for fan control. The system
intelligently monitors ambient air quality and activates a DC fan when pollution levels exceed a
defined threshold (PM > 370), enabling automated purification. It utilizes renewable solar energy
stored in a battery, ensuring off-grid operation. An LED indicates solar charging status, enhancing
usability. By employing event-driven logic and cloud integration, the system achieves real-time
responsiveness, efficient energy usage, and low-cost deployment, making it suitable for smart
homes, schools, and urban spaces. Testing showed a 93% accuracy in pollution detection, 100%
solar uptime in peak daylight, and a 40% reduction in power consumption compared to
conventional systems.
4
TABLE OF CONTENTS
ABSTRACT 4
TABLE OF CONTENTS 5
LIST OF FIGURES LIST 7
OF TABLES 8
ABBREVIATIONS 9
1 INTRODUCTION 10
2.1 Sprint 1 19
2.1.1 Sprint Goal with User Stories of Sprint 1 19
2.1.4 UI Design 28
2.2 Sprint 2 33
5
2.2.2 Functional Document 34
2.2.4 UI Design 41
2.3 Sprint 3 46
2.3.4 UI Design 54
6
LIST OF FIGURES
7
LIST OF TABLES
8
ABBREVIATIONS
UI User Interface
PM Particulate Matter
ML Machine Learning
9
CHAPTER 1
INTRODUCTION
Beyond its autonomous operation, the system is designed with user accessibility and
community impact in mind. Through a connected mobile interface or web dashboard, users
receive real-time updates, air quality insights, and system status notifications. Additionally, the
platform promotes local environmental awareness by allowing data sharing across
communities, enabling collaborative pollution tracking and response. This combination of
solar-powered sustainability, intelligent automation, and community engagement creates a
robust and eco-friendly solution to modern air quality challenges—empowering individuals to
breathe cleaner air while contributing to a broader environmental initiative.
10
1.2 Motivation
The motivation behind this system arises from the urgent need to combat deteriorating air quality
while promoting sustainable and self-sufficient environmental solutions. Traditional air
purification methods often depend on continuous power supply and lack the intelligence to adapt
dynamically to changing air conditions. As pollution levels rise and energy demands grow,
especially in urban and industrial areas, there is a pressing demand for solutions that are both eco-
friendly and responsive. This system addresses these issues by integrating solar energy with IoT-
driven automation, enabling real-time air quality monitoring and intelligent purification without
dependence on conventional power grids.
Furthermore, while environmental monitoring has become more widespread, it often remains
disconnected from individual action or community engagement. There is limited accessibility to
localized air quality data and even fewer tools that respond proactively to pollution threats. This
project seeks to fill that gap by empowering individuals and communities with real-time,
actionable insights and autonomous purification. By leveraging renewable energy and smart
control systems, the platform not only ensures cleaner air but also fosters environmental
awareness and responsibility. It reimagines air quality management as a decentralized, accessible,
and sustainable process—bringing environmental technology closer to everyday lives and
enabling collective action toward healthier living spaces.
11
1.3 Sustainable Development Goal of the Project
This project aligns closely with the United Nations' Sustainable Development Goal 11 (SDG 11),
which aims to make cities and human settlements inclusive, safe, resilient, and sustainable. By
integrating solar energy with IoT-based air quality monitoring and intelligent purification, the
system directly contributes to creating healthier urban environments and promoting sustainable
infrastructure. It addresses critical aspects of SDG 11, such as reducing the environmental impact
of cities, improving air quality, and supporting the development of smart and resilient urban
solutions.
12
1.4 Product Vision Statement
1.4.1. Audience:
- Primary Audience: Urban residents and local communities seeking real-time air quality
monitoring and sustainable purification solutions.
1.4.2. Needs:
- Primary Needs:
- A self-sustaining, solar-powered system that operates autonomously in varied environments.
- Real-time air quality monitoring and automatic purification when pollutants exceed safe
thresholds.
- Intuitive visual indicators (LEDs or displays) to keep users informed about air quality status.
- Secondary Needs:
- Cloud-based dashboards or mobile interfaces to log and visualize pollution trends over time.
- Low maintenance and cost-effective deployment suitable for both dense urban and remote
settings.
- Integration with IoT networks for data sharing, alerts, and broader environmental monitoring.
1.4.3. Products:
- Core Product:
A solar-powered IoT system that monitors air quality in real-time and activates an air purification
fan when pollutant levels exceed set thresholds, using sensors like MQ135 and DHT22, all
managed via a low-power microcontroller (e.g., ESP8266).
- Additional Features:
14
1.5 Product Goal
The primary goal of the solar-powered IoT air purification and monitoring system is to
redefine how communities manage and respond to environmental health challenges,
particularly air pollution. The platform aims to empower individuals and localities by
providing a smart, self-sustaining solution that continuously monitors air quality and initiates
purification autonomously. By leveraging clean solar energy and intelligent automation, the
system operates independently of traditional power sources, making it accessible and
impactful even in remote or underserved areas.
In addition to real-time air quality monitoring, the system fosters community-driven
awareness and action by offering transparent and localized data. Through intuitive LED
indicators and potential mobile integrations, users are kept informed of their immediate
environment, enabling proactive decisions to reduce exposure to harmful pollutants. The goal
is to not only improve air quality but also to educate and engage citizens in environmental
stewardship at a grassroots level.
Ultimately, the product’s vision is to create a scalable, sustainable, and socially responsible
ecosystem that promotes cleaner air and healthier living. By merging renewable energy with
IoT intelligence, this platform aspires to drive lasting environmental impact— transforming
air purification from a passive process into an active, community- empowering solution that
contributes to broader sustainability and public health goals.
15
1.6 Product Backlog
#US 2 As a user, I want the system to automatically detect poor air quality so that it can activate
16
The product backlog of the Solar-Powered IoT Air Purification and Air Quality Monitoring
System was configured using the MS Planner Agile Board, as shown in Figure 1.1. This product
backlog comprehensively outlines all the user stories associated with the solar- powered system's
development and deployment.
Each user story is documented with essential parameters including MoSCoW prioritization
(Must have, Should have, Could have, Won’t have), classifications into functional and non-
functional requirements, and detailed acceptance criteria that guide the successful
implementation of each feature. Moreover, every user story is linked to a series of granular tasks
that represent development milestones, testing activities, integration steps, and hardware
validation processes.
This structured backlog ensures clarity, traceability, and alignment between the development
efforts and project goals while facilitating efficient sprint planning and iterative progress tracking
throughout the product lifecycle.
17
1.7 Product Release Plan
The following Figure 1.2 depicts the release plan of the project where we have planned for product
backlog in week 1 and week 2. We have purposed for Hardware Integration, Sensor calibration, Air
quality threshold logic, Reak time air quality monitoring dashboard, Notification system, Performance
Testing and Optimization and Maintenance and Documentation.
18
CHAPTER 2
2.1 Sprint 1
The table 2.1 represents the detailed user stories of the sprint 1, In sprint 1 there are 5 user story.
These sprints are responsible for creating the basic foundation to this AI and solar power air quality
management project.
19
Planner Board representation of user stories are mentioned below figures 2.1,2.2 and 2.3.
These boards gives us the knowledge of how to continue with our work progress by creating
buckets and also we can drag from one bucket to other.
Figure 2.1 User Story for Monitoring Air Quality, Temperature and Humidity
20
Figure 2.3 User Story for Search Functionality
21
2.1.2 Functional Document
2.1.2.1. Introduction
The Solar-Powered IoT Air Purifier and Air Quality Monitoring System project aims to
create an autonomous, energy-efficient system for monitoring and improving air quality using
solar power and IoT technologies. The system integrates sensors, a solar panel, and an air purifier
to provide real-time environmental data and optimize air quality in different settings.
22
2.1.2.4. Business Processes
The Key business processes for this project include:
• User Registration and Authentication: Users will be able to register securely to
access system data, updates, and settings.
• Data Collection and Analysis: The system collects real-time data from sensors and
analyzes the air quality to make automated decisions.
• Fan Control: Based on air quality readings, the system will trigger the fan to purify the
air.
• Solar Power Monitoring: The system will monitor the solar panel’s energy output to
ensure the system remains powered autonomously.
2.1.2.5. Features
This project focuses on implementing the following key features:
• Description: The system uses sensors (MQ135 for air quality and DHT22 for
temperature and humidity) to provide real-time data on the environment.
• User Story: As a user, I want to monitor the air quality of my space in real time, so I
can take action if needed.
• Description: The system operates on solar energy, ensuring sustainability and energy
efficiency. Solar panels charge the system’s battery, which powers the fan and sensors.
• User Story: As a user, I want the system to be powered by solar energy, so I don’t have
to worry about running out of power or increasing my energy bill.
• Description: The fan will automatically turn on when air quality falls below a specific
threshold (e.g., high CO2 levels).
23
• User Story: As a user, I want the fan to automatically adjust based on air quality, so the
system runs efficiently without manual intervention.
• Description: Users will be able to monitor the system’s performance remotely through a
web interface or mobile app.
• User Story: As a user, I want to be able to check the system’s performance and data
remotely, so I can keep track of air quality and energy use when I’m away.
2.1.2.6. Authorization Matrix
Table 2.2 Access level Authorization Matrix
Administrator Full access to manage the system settings, user data, and configuration.
Educator Access to monitor air quality, fan status, and solar panel performance.
Learner Limited access to view basic air quality data (if applicable).
2.1.2.7. Assumptions
• The solar panel will be sufficient to power the system under typical usage conditions.
• The IoT system will be robust, allowing for continuous monitoring of air quality
without frequent maintenance.
• The web or mobile interface will be functional and allow users to access system data
remotely (optional feature).
• The user feedback during development and testing phases will be crucial for system
optimization and improvement.
• The platform will comply with data protection regulations to ensure user privacy.
24
2.1.3 Architecture Document
2.1.3.1. Application
Microservices:
The system follows a modular architecture, where distinct functionalities are implemented as
lightweight, independent microservices. This design ensures scalability, ease of testing, and
efficient deployment. Key microservices developed or initiated in Sprint 1 include:
25
2.1.3.2 System Architecture
• Periodic Syncs: Non-critical data, such as user activity logs or historical performance
data, is synchronized at scheduled intervals.
Data Sets:
The platform handles several key data sets, each with specific exchange requirements:
• User Data: Includes personal details, credentials, and preferences. This data is
exchanged during login, profile updates, and role assignments.
• Course Data: Encompasses course details, content, and metadata, exchanged during
course creation, updates, and deletions.
• Enrolment Data: Tracks student progress and performance, exchanged when students
enroll, complete, or drop courses.
26
Mode of Exchanges (API, File, Queue, etc.)
Various methods are used for data exchange across the platform:
• API: RESTful APIs facilitate real-time data exchanges between the front-end and back-
end services.
• Message Queues: Services such as RabbitMQ or AWS SQS are used for handling
asynchronous tasks like sending notifications or processing background jobs.
• File-Based Exchanges: Certain data, such as bulk uploads of course materials, are
handled via file exchanges, typically through S3 or similar storage services.
27
2.1.4 UI DESIGN
28
2.1.5 Functional Test Cases
29
2.1.6 Daily Call Progress
30
2.1.7 Committed Vs Completed User Stories
31
2.1.8 Sprint Retrospective
32
2.2 SPRINT 2
As a user, I want the platform to display real-time air quality data from
the MQ135 sensor so that I can track the air quality in my environment.
US #7
33
2.2.2 Functional Document
2.2.2.1 Introduction
Sprint 2 focuses on extending the Solar-Powered IoT Air Purifier and Air Quality Monitoring
System by enhancing its smart control capabilities, integrating solar battery monitoring, and
improving the data visualization experience. This sprint ensures that the system not only
reacts to poor air quality but also optimizes fan activation based on both environmental and
energy parameters.
• Location:
• Global target, particularly in regions with variable sunlight exposure and moderate to
high air pollution levels.
34
• Solar Panel Monitoring: Solar panel output is monitored to assess available power,
ensuring energy-efficient operation.
• Data Logging: Sensor data (air quality, solar voltage, battery status) is logged
periodically for performance tracking and long-term analysis.
2.2.2.5 Features
Feature 1: Intelligent Fan Control
• Description: The system dynamically decides to run the fan based on both air quality
readings and solar battery charge status to optimize energy use.
• User Story: As a user, I want the fan to operate efficiently by considering energy levels
and air quality so that I get clean air without draining the system unnecessarily.
• User Story: As a user, I want to monitor how much solar energy is available so I can
trust that the system will continue running autonomously.
• User Story: As a user, I want environmental data to be logged to the cloud so that I
can view historical trends and system performance over time.
• User Story: As a user, I want the dashboard to show detailed trends and alerts clearly,
so I can understand environmental changes quickly.
35
2.2.2.6 Authorization Matrix
Table 2.5 Authorization Matrix Sprint 2
Role Access Level
Administrator Full access to all settings, historical logs, and system configuration.
Access to view live and historical environmental data, solar power statistics,
Educator
and system status.
2.2.2.7 Assumptions
• Solar panel output will vary but remain sufficient to maintain minimal system
operation during regular daylight hours.
36
2.2.3 Architecture Document
o Responsibilities:
▪ Monitor real-time sensor data.
▪ Trigger alerts when CO₂ or pollutant levels exceed defined limits.
▪ Activate/deactivate fan based on thresholds.
• Battery Health Monitoring Service:
o Description: This service will track the health of the battery, including its
voltage levels, charge cycles, and overall performance. It will provide
warnings if the battery’s health is degrading and recommend system
adjustments.
o Responsibilities:
▪ Monitor battery voltage and health status.
▪ Send alerts to the Solar Power Monitoring Service for battery
optimization.
o Responsibilities:
▪ Periodically synchronize data to cloud storage.
▪ Ensure data integrity and availability.
▪ Support future development of user-facing analytics features.
37
• User Notification Service:
o Description: This service manages user notifications, including alerts about air
quality, system status, and battery health. It allows users to stay informed about
the performance of the air purifier and its environmental impact.
o Responsibilities:
▪ Send push notifications, SMS, or email alerts based on system
conditions (e.g., fan activation, air quality threshold breach).
o Responsibilities:
▪ Display real-time environmental data (CO₂, temperature, humidity).
▪ Show fan activation status and solar power consumption.
▪ Provide user interaction with system notifications and settings.
38
2.2.3.2 System Architecture
39
2.2.3.3 Data Exchange Contract
In Sprint 2, data exchange processes remain focused on high availability and real-time
communication with periodic synchronizations. However, additional complexity is introduced
with new microservices and data flow.
o The Cloud Data Sync Service aggregates sensor data, battery health metrics,
and fan statuses before syncing it.
Data Sets:
• Air Quality Data: Includes CO₂ levels, temperature, humidity, and fan status.
Exchanged between the Sensor Data Acquisition Service, Air Quality Alert
Service, and the Device Control Service.
• Battery Data: Tracks voltage, charge cycles, and battery health. Exchanged with the
Battery Health Monitoring Service and the Solar Power Monitoring Service.
• System Alerts & Notifications: Includes user alerts and fan activation notices.
Shared via the User Notification Service.
Mode of Exchanges:
• API:
o Real-time data exchanges between services such as Sensor Data Acquisition
Service, Air Quality Alert Service, and Device Control Service.
• Message Queues:
o Services like User Notification Service and Cloud Data Sync Service rely
on asynchronous message queues (e.g., RabbitMQ, AWS SQS) for
background jobs.
• File-Based Exchanges:
o Bulk data (e.g., sensor data logs) will be exchanged through file uploads to
cloud storage systems like AWS S3 for later processing and analysis.
40
2.2.4 UI Design
41
2.2.5 Functional Test Cases
42
2.2.6 Daily Call Progress
43
2.2.7 COMMITTED Vs COMPLETED USER STORIES
44
2.2.8 Sprint Retrospective
Create a
shared
MOSFET logic Use a transistor or component
worked correctly LED and fan shared separate circuit inventory list
after fixing GPIO unclear wiring logic Add LED indicator for path for status in Google
and grounding. with solar source. solar charging status. LED. Sheets
Team
collaborated Some delays in Draw and
efficiently on setting up Maintain an print circuit
sensor integration components due to Prepare a inventory box and diagrams for
and idea missing component checklist pre-assemble team
generation. resistors/pulldowns. before sprint starts. modules. reference
Successfully
integrated cloud Delay in receiving Order all Use a Kanban Build a
dashboard for some components components in board to track custom PCB
real-time data caused lag in advance before incoming parts to avoid
viewing. testing. sprint begins. and lead times. messy wiring
45
2.3 Sprint 3
Implement user collaboration features, advanced system settings, and real-time alerts for air
quality thresholds.
As a user, I want to receive notifications when the air quality exceeds a threshold,
US #9
so that I can take appropriate action to improve it.
As a user, I want to collaborate with other users working on similar IoT-based air
US #10
purifier projects so that I can share ideas and improve my design.
As a user, I want to adjust the threshold levels for air quality monitoring and fan
US #11
activation through the platform to fine-tune the performance of my system.
46
2.3.2 Functional Document
2.3.2.1 Introduction
Sprint 3 aims to complete the Solar-Powered IoT Air Purifier and Air Quality Monitoring
System by integrating machine learning-driven decision-making, enabling predictive air quality
management, and preparing the system for remote updates and optimizations. This phase
ensures the system becomes smarter, more adaptive, and future-ready.
• Location:
• Global, with emphasis on urban centers, suburban communities, and research
facilities needing intelligent air quality monitoring and proactive purification.
47
• Remote Firmware Updates: Ability to push firmware updates over Wi-Fi to improve
system features without physical access.
• Alert Management: Notifying users in real-time when critical air quality levels are
detected.
2.3.2.5 Features
Feature 1: Machine Learning-Based Control
• Description: Machine learning algorithms (e.g., simple regression models or
reinforcement learning) predict air quality degradation and automate proactive fan
activation.
• User Story: As a user, I want the system to predict poor air quality before it happens, so
that purification starts early and air quality remains consistently healthy.
• User Story: As a user, I want the system to receive updates remotely, so I don't have to
physically access the hardware for improvements or bug fixes.
• User Story: As a user, I want to be alerted instantly when air quality becomes dangerous,
so I can take immediate action if needed.
48
• User Story: As a user, I want the system to manage its energy and operation smartly,
so it can run longer without needing manual maintenance.
View predictive air quality trends, receive alerts, and monitor system
Educator
performance.
Limited access to view predictions and receive air quality alerts (if applicable).
Learner
2.3.2.7 Assumptions
• Machine learning models will initially use basic models, with the possibility of future
upgrades.
• OTA updates will assume stable Wi-Fi connectivity during update operations.
• Alert services (email/SMS) will depend on third-party integrations which must remain
reliable.
• Users will grant necessary permissions for receiving notifications and remote updates.
• The system will include fallback mechanisms in case of OTA update failures.
49
2.3.3 Architecture Document
• Responsibilities:
o Analyze sensor trends and predict future CO₂ levels.
o Trigger early fan activations before pollution peaks.
o Provide predictions to the Dashboard for visualization.
Automated Energy Optimization Service
• Description: Dynamically adjusts system behavior (like fan activation thresholds)
based on available solar power and battery health to extend system uptime during
low-sunlight periods.
• Responsibilities:
o Analyze solar input vs. battery discharge patterns.
o Adjust fan speed and operating intervals intelligently.
o Communicate with the Device Control Service and Battery Health
Monitoring Service.
• Responsibilities:
o Aggregate data stored via the Cloud Data Sync Service.
o Create visualizations (e.g., pollution trends, solar energy efficiency graphs).
User Personalization Service
• Description: Lets users set their own air quality thresholds for alerts and fan
activation, instead of relying only on system defaults.
• Responsibilities:
o Allow users to customize thresholds for air quality levels.
o Store user-specific settings securely.
o Adapt notification and control services based on personalized settings.
50
OTA (Over-the-Air) Update Service (Basic)
• Description: Allows remote firmware and software updates for the IoT device,
sensors, and dashboard components.
• Responsibilities:
o Schedule and deploy firmware updates.
o Provide version control and rollback in case of failures.
51
2.3.3.2. System Architecture
52
2.3.3.3. Data Exchange Contract
Sprint 3 introduces more types of data and new exchange patterns.
Frequency of Data Exchanges:
• Real-Time Exchanges:
o User personalization settings applied immediately on change.
o Predictive analysis updates periodically (~every 10-15 minutes) and adjusts
system behavior.
• Periodic Syncs:
o Historical analytics updated daily.
o Cloud data sync runs every 5-10 minutes.
• On-Demand Exchanges:
o OTA updates initiated manually or scheduled.
53
2.3.4 UI Design
54
2.3.5 Functional Test Cases
55
2.3.6 Daily Call Progress
56
2.3.7 Committed Vs Completed User Stories
57
2.3.8 Sprint Retrospective
Write
threshold-
Accurate based
threshold Misunderstood Document correct control logic
detection was FR120N pinout Always refer to pinouts and keep and test with
achieved after initially caused official datasheets printed sheets simulated
calibration. miswiring. before wiring. during build. values
Breadboard Add retry logic in
prototyping Improve sensor code and limit Add an LED
helped identify DHT22 occasionally polling timing with reads to status light
early circuit returned NaN due better delay recommended for solar
issues. to missing delays. management. intervals. panel
The system
automatically Update cloud Code lacked
triggered fan No visual feedback Add a virtual switch properties and air quality
based on air to show fan status or status indicator to create a "Fan threshold
quality above 370. on the dashboard. the IoT dashboard. Status" variable. logic
Add a 5–10 Component
Understood minute warm-up confusion
working behavior Sensor warm-up Document warm-up delay before due to
of MQ135 better time wasn’t time for MQ135 in taking air quality unlabelled
through trial runs. considered initially. user manual. readings. wires
58
CHAPTER 3
The Solar-Powered IoT Air Purifier and Air Quality Monitoring System was successfully
designed, implemented, and tested, achieving the primary objectives set at the beginning of the
project. The major outcomes of the project are summarized below:
o The solar power monitoring service successfully tracked battery voltage and
solar input, helping in optimizing energy usage.
o The interface enabled evelopers and users to visualize system operation and
environmental conditions in real-time.
• Solar Power Monitoring Service logged energy consumption and battery status,
providing insights for energy management.
o Predictive Air Quality Analysis Service could forecast short-term air quality
trends based on historical data.
• Energy Efficiency:
o The solar charging system provided enough power to sustain the device for
approximately 24–36 hours without direct sunlight once fully charged.
60
3.1.4 Sustainability and Scalability Outcomes
• Eco-Friendly Operation:
o 100% reliance on solar energy for power under ideal sunlight conditions
promoted environmental sustainability.
o Future scaling, such as adding more sensor types or integrating with smart
home ecosystems, can be achieved with minimal system redesign.
• Sensor Calibration:
o The MQ135 sensor required an initial calibration period (~24 hours) for stable
readings, slightly delaying early-stage testing.
• Data Connectivity:
o Stable Wi-Fi was essential for cloud data sync and OTA updates, posing
challenges in remote areas with weak signals.
61
3.2 Committed Vs Completed User stories
Fig 3.1 Bar graph for completed vs committed sprint 1,2 and 3
62
CHAPTER 4
The project achieved the key goals of sustainability, autonomy, and real-time environmental
intelligence. It validates that renewable energy-powered IoT solutions can play a significant
role in addressing urban and rural air quality challenges without increasing the carbon footprint.
In addition, the project lays the groundwork for integrating machine learning, enabling
predictive analytics and smart resource management, making the system not only reactive but
also preventive.
While the current system meets its core objectives, several enhancements could further expand
its impact and functionality:
Implement deeper learning models to predict pollution patterns based on historical data,
weather forecasts, and time-of-day analysis for even smarter air purification control.
• Multi-Sensor Expansion
Incorporate additional sensors such as PM2.5/PM10 (dust), NO₂, and VOC sensors for
more comprehensive air quality assessment.
63
• Mobile App Development
Launch a dedicated Android/iOS app for user-friendly access to real-time data, alerts,
and system control functionalities.
Enhance the system with local, on-device AI processing to reduce dependence on cloud
services, ensuring faster decision-making and lower operational costs.
Introduce the option for hybrid power sources (solar + grid) to guarantee continuous
operation during low solar generation periods.
• Community Networking
Allow multiple systems to form a mesh network, sharing air quality data over larger
geographical areas for community-level monitoring and analysis.
• Predictive Maintenance
Use sensor data and operational logs to predict when components such as fans or sensors
need servicing or replacement, enhancing reliability and system lifespan.
64
APPENDIX
65
B. SAMPLE CODING
#include "arduino_secrets.h"
/*
Sketch generated by the Arduino IoT Cloud Thing
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to
the Thing
String message;
CloudPercentage airquality;
CloudRelativeHumidity humidity;
CloudTemperature temperature;
*/
#include "thingProperties.h"
#include "DHT.h"
#define DHTpin 4 // D2 on the NodeMCU (GPIO4)
#define DHTTYPE DHT11
#define MQ135PIN A0
#define FAN_PIN D1 // GPIO5, controls the MOSFET
66
float temp = dht.readTemperature();
Serial.print("Temperature: ");
Serial.println(temp);
humidity = hm;
temperature = temp;
int airqualityvalue = analogRead(MQ135PIN);
Serial.print("Gas Value: ");
Serial.println(airqualityvalue);
airquality = airqualityvalue;
// Update message for cloud
message = "Temperature = " + String(temperature) +
" °C, Humidity = " + String(humidity) +
" %, Air Quality = " + String(airqualityvalue);
// Fan control based on air quality
if (airqualityvalue > 300) {
digitalWrite(FAN_PIN, HIGH); // Turn ON the fan
Serial.println("Fan ON (bad air quality)");
} else {
digitalWrite(FAN_PIN, LOW); // Turn OFF the fan
67
C. PLAGIARISM REPORT
Format - I
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Deemed to be University u/ s 3 of UGC Act, 1956)
RA2211003010091, RA2211003010129
3 Registration Number
27/07/2004, 29/08/2005
4 Date of Birth
Individual or group :
(Strike whichever is not applicable)
Dr. Vanusha D
Department of Computing Technologies, Faculty of
Engineering and Technology, Kattankulathur-
Name and address of the Supervisor / Chennai
9
Guide
Mail ID: [email protected]
Mobile Number: 9600081734
68
11 Software Used TURNITIN
1
INTRODUCTION
2 LITERATURE REVIEW
3 PROPOSED WORK
4 METHODOLOGY
5 IMPLEMENTATION
6
RESULTS AND EVALUATION
7 CONCLUSION
8 REFERENCES
10
Appendices
I / We declare that the above information have been verified and found true to the best of my / our knowledge.
69
70
71