Professional Documents
Culture Documents
Oshodi Project Real
Oshodi Project Real
PRESENTED BY:
SUBMITTED TO:
POLYTECHNIC SAAPADE
AUGUST, 2023
CERTIFICATION
This project report on the DESIGN AND CONSTRUCTION OF IOT-BASED HUMIDITY
AND TEMPERATURE CONTROL USING ARDUINO was carried out by Adedoye Peter
Oluwatimileyin with Matriculation number: 21010131001 meeting the regulations governing the
award of Higher National Diploma in Computer Engineering, Gateway (ICT) Polytechnic
Saapade, Ogun State and is approved for its contribution to scientific knowledge and literacy
presentation.
_________________________ ________________________
_________________________ ________________________
__________________________ ________________________
ii
DEDICATION
Dedicated to God Almighty
iii
ACKNOWLEDGMENT
First and foremost, my gratitude goes to God Almighty for his support and everlasting grace
upon our lives ever since the beginning of our studies to this completion.
I am grateful to Engr. Mr. Aderanti Taiwo (Dean School of Engineering Technology) for his
patience and guidance in the supervising and nursing us throughout this journey.
Also, my gratitude goes to all the lecturers in the department of Computer Engineering, my
friends for their love and encouragement.
iv
Table of Contents
TITLE PAGE....................................................................................................................................................i
CERTIFICATION............................................................................................................................................ii
DEDICATION................................................................................................................................................iii
ACKNOWLEDGMENT...................................................................................................................................iv
Table of Contents.........................................................................................................................................v
Abstract.....................................................................................................................................................vii
CHAPTER ONE..............................................................................................................................................1
INTRODUCTION.......................................................................................................................................1
1.1 Background........................................................................................................................................1
1.3 Objectives..........................................................................................................................................1
CHAPTER TWO.............................................................................................................................................3
Literature Review....................................................................................................................................3
CHAPTER THREE..........................................................................................................................................5
Circuit diagram........................................................................................................................................5
3.4.3 Testing:.........................................................................................................................................10
CHAPTER FOUR..........................................................................................................................................12
CHAPTER FIVE............................................................................................................................................14
REFERENCES..............................................................................................................................................17
APENDIX 1.................................................................................................................................................18
vi
Abstract
This paper presents the design and construction of an IoT-based humidity and temperature
control system using Arduino. The system utilizes sensors, an Arduino microcontroller, and a
communication module to monitor and regulate humidity and temperature levels in real-time.
The system offers advantages such as remote access, energy efficiency, and scalability. The
implementation of the system enhances productivity, conserves energy, and improves user
comfort. Future work may involve integrating machine learning algorithms for predictive control
and optimization.
Keywords: IoT, humidity control, temperature control, Arduino, remote access
vii
CHAPTER ONE
INTRODUCTION
1.1 Background
In recent years, the Internet of Things (IoT) has gained significant attention for its ability to
connect and control various devices and systems through the internet. One of the areas where IoT
has proven to be beneficial is in environmental monitoring and control. Maintaining optimal
humidity and temperature levels is crucial in many applications such as agriculture, food storage,
and industrial processes. This project aims to design and construct an IoT-based humidity and
temperature control system using Arduino, a popular open-source microcontroller platform.
1.2 Problem Statement
1.3 Objectives
The main objectives of this project are as follows:
Enable remote access and control of the system through the internet.
viii
actuators, and communication modules. The software development involves programming the
Arduino microcontroller, data processing, user interface design, and remote access capabilities.
The project does not cover the integration of advanced features such as machine learning
algorithms or complex control strategies.
1.5 Methodology
The project will follow a systematic methodology, including the following steps:
3. Develop the software components, including programming the Arduino, data processing, user
interface design, and remote access capabilities.
4. Integrate the hardware and software components and perform testing and evaluation.
This document is organized into five chapters to provide a comprehensive understanding of the
project. Chapter 1 introduces the project background, problem statement, objectives, scope,
methodology, and document organization. Chapter 2 presents a literature review, highlighting
relevant concepts, technologies, and previous research in IoT-based humidity and temperature
control. Chapter 3 focuses on the system design and architecture, including hardware and
software components. Chapter 4 discusses the implementation process, experimental results, and
analysis. Finally, Chapter 5 concludes the project, summarizes the achievements, discusses
limitations, suggests future work, and provides a final conclusion.
ix
CHAPTER TWO
Literature Review
x
2.4 Arduino and its Role in IoT
Arduino is an open-source microcontroller platform widely used in IoT projects. It provides a
flexible and cost-effective solution for prototyping and building electronic devices. Arduino
boards are equipped with digital and analog input/output pins, making them suitable for
interfacing with various sensors and actuators. The Arduino IDE (Integrated Development
Environment) simplifies programming and allows developers to write code in C/C++. Arduino’s
versatility and ease of use make it a popular choice for IoT-based projects, including humidity
and temperature control systems.
xi
CHAPTER THREE
System Design and Architecture
Circuit diagram
xii
3.2 Hardware Components
The Arduino microcontroller board serves as the brain of the system. It provides the necessary
processing power and input/output capabilities to interface with the sensors, actuators, and
communication module. Arduino boards are widely used due to their simplicity, affordability,
and versatility.
Temperature and humidity sensors are integral to this system. These sensors measure the ambient
temperature and humidity levels in the environment. There are various types of sensors available,
such as DHT11, DHT22, and BME280, which can be connected to the Arduino board to obtain
accurate measurements.
xiii
3.2.3 Actuators (Fans, Heaters, etc.)
Actuators are used to control the environment based on the measured temperature and humidity
values. In this system, fans and heaters are commonly used as actuators. Fans help to circulate air
and maintain the desired temperature, while heaters are used to increase the temperature if
needed. The Arduino board controls these actuators based on the programmed logic and sensor
readings.
xiv
Send
notification
Flowchart
xvi
Once all the hardware components are integrated, you can move on to the software integration
phase.
3.4.3 Testing:
Testing is a critical step to ensure that the integrated system functions correctly and meets the
desired requirements. Several types of tests were performed, including functional testing,
performance testing, and reliability testing.
Functional testing involves verifying that the system performs the intended functions correctly.
You should test different scenarios, such as varying the humidity and temperature levels to
ensure that the control logic responds appropriately. For example, the system to maintain a
specific temperature and humidity level and observe if the actuators adjust accordingly.
Performance testing assesses how well the system performs under different conditions. This
includes testing the system’s response time, accuracy in controlling the environment, and its
ability to handle simultaneous requests. For instance, we check how quickly the system responds
to changes in humidity or temperature and if it can maintain the desired levels consistently.
Reliability testing ensures that the system functions reliably over an extended period. This
involves running the system continuously for an extended duration and monitoring its
performance and stability. It helps identify any potential issues such as sensor drift, actuator
failures, or software bugs that may impact the system’s reliability.
xvii
During testing, it is essential to document any issues or bugs encountered and make the
necessary adjustments to the hardware or software. Once the system passes all the tests and
performs as expected, it can be considered ready for deployment.
In conclusion, system integration and testing are vital stages in the design and construction of an
IoT-based humidity and
xviii
CHAPTER FOUR
Implementation and Results
4.1 Hardware Implementation
The hardware implementation of the IoT-based humidity and temperature control system
involves assembling the necessary components and connecting them together. The key hardware
components include an Arduino board, humidity and temperature sensors, actuators (such as
relays or fans), and any additional peripherals required.
The Arduino board serves as the central control unit and is responsible for gathering sensor data,
making control decisions, and activating the actuators accordingly. The humidity and
temperature sensors are connected to the Arduino, providing real-time data on the environmental
conditions. The actuators, based on the control logic, adjust the humidity and temperature levels
by activating devices like humidifiers or heaters.
During the hardware implementation, it is essential to carefully follow the instructions provided
by the component manufacturers and ensure proper wiring and connections. Quality and
accuracy of the components play a crucial role in the overall performance of the system.
4.2 Software Implementation:
The software implementation involves developing the code that runs on the Arduino board. The
Arduino programming language, which is based on C/C++, is used to write the software. The
software is responsible for reading sensor data, implementing the control logic, and activating
the actuators accordingly.
The software implementation typically includes the following steps:
1. Initializing the necessary libraries and defining variables.
2. Setting up the communication between the Arduino and the humidity and temperature sensors.
3. Implementing the control logic based on the desired humidity and temperature levels.
4. Controlling the actuators by sending appropriate signals.
5. Optionally, implementing additional features such as data logging or remote monitoring.
It is important to ensure that the software is efficient, reliable, and well-structured. Proper error
handling and exception handling should be incorporated to handle unexpected scenarios.
xix
4.3 Integration of Hardware and Software:
The integration of hardware and software involves connecting the hardware components to the
Arduino board and uploading the software code to the board. This process ensures that the
sensors and actuators are correctly interfaced with the Arduino and that the software can
communicate with them effectively.
During the integration, it is crucial to verify the connections and ensure that they are secure and
accurate. Any loose or incorrect wiring can lead to malfunctioning of the system. Additionally,
the software code should be thoroughly tested to identify any bugs or issues that may arise
during the integration process.
4.4 Testing and Evaluation
Once the hardware and software are integrated, comprehensive testing was performed to evaluate
the functionality and performance of the system. Testing involves verifying that the system
operates as intended, meets the specified requirements, and performs reliably under different
conditions.
Different types of tests can be conducted, including functional testing, performance testing, and
reliability testing. Functional testing ensures that the system performs the desired functions
correctly, such as adjusting the humidity and temperature levels based on the sensor readings.
Performance testing assesses the system’s response time, accuracy, and ability to handle varying
environmental conditions. Reliability testing evaluates the system’s stability and robustness over
an extended period.
4.5 Results and Analysis
The results obtained from the testing phase are analyzed to assess the performance and
effectiveness of the IoT-based humidity and temperature control system. The test results should
be compared against the specified requirements and objectives of the system.
The analysis includes evaluating the system’s accuracy in maintaining the desired humidity and
temperature levels, its response time to changes in environmental conditions, and its overall
reliability. Any discrepancies or deviations from the expected results should be noted and
investigated further.
xx
CHAPTER FIVE
Conclusion and Future Work
5.1 Summary of the Project
In this project, an IoT-based humidity and temperature control system using Arduino was
designed and constructed. The system aimed to monitor and regulate the humidity and
temperature levels in a specific environment. The project utilized Arduino as the microcontroller
platform, along with various sensors and actuators to measure and control the environmental
conditions. The system successfully achieved its objectives and provided real-time monitoring
and control capabilities through internet connectivity.
However, there were some limitations to the system. The accuracy of the sensors used in the
project could be further improved to ensure precise measurements. Additionally, the control
algorithm could be enhanced to provide more efficient and optimized control of the environment.
The system’s scalability and compatibility with other IoT devices could also be improved to
enable seamless integration with other smart home or industrial automation systems.
5.3 Contributions to the Field
This project made significant contributions to the field of IoT-based environmental control
systems. It demonstrated the feasibility and effectiveness of using Arduino as a platform for
building such systems. The project provided a practical implementation and integration of
sensors, actuators, and IoT connectivity, showcasing how these components can work together to
monitor and control environmental conditions.
xxi
The project also contributed to the knowledge and understanding of humidity and temperature
control algorithms, as well as the challenges and considerations involved in designing IoT-
enabled systems. The insights gained from this project can serve as a foundation for further
research and development in the field.
Secondly, optimizing the control algorithm can lead to more efficient and responsive control of
the environmental conditions. Advanced control techniques such as fuzzy logic or model
predictive control can be explored to achieve better control performance.
Lastly, enhancing the user interface and user experience of the web or mobile application can
improve the system’s usability and accessibility. Adding features such as data logging, historical
data analysis, and personalized settings can make the system more user-friendly and versatile.
5.5 Conclusion
In conclusion, the IoT-based humidity and temperature control system developed in this project
successfully demonstrated the ability to monitor and regulate environmental conditions using
Arduino and IoT connectivity. The project achieved its objectives and contributed to the field of
IoT-based environmental control systems.
While the system showed promising results, there is still room for improvement in terms of
sensor accuracy, control algorithm optimization, system scalability, and user interface
enhancements. Addressing these areas in future work can further enhance the system’s
performance and expand its applications in various domains such as smart homes, industrial
automation, and agriculture. Overall, this project lays a foundation for future research and
xxii
development in the field of IoT-based environmental control systems.
xxiii
REFERENCES
[1]. Xiaomin Zhang, Hang Lu, Jiahao Li, Xushan Peng, “Design and Implementation of
Intelligent Light Control System Based on Arduino”, 2020 IEEE International Conference on
Artificial Intelligence and Computer Applications (ICAICA).
[2]. M. Udin Harun Al Rasyid, Ferry Astika Saputra, Agus Prasetiyo, “I-ON Smart
Controller:Portable Smart Home Solution Based on Arduino And Raspberry Pi”, 2018
International Conference on Applied Science and Technology (ICAST).
[3]. Sujit Thakare, P.H.Bhagat, “Arduino-Based Smart Irrigation Using Sensors and ESP8266
WiFi Module”, Proceedings of the Second International Conference on Intelligent Computing
and Control Systems (ICICCS 2018), IEEE Xplore Compliant Part Number: CFP18K74-ART;
ISBN:978-1-5386-2842-3.
[4]. Norakmar binti Arbain Sulaiman, Muhamad Dan Darrawi bin Sadli, “An IoT-based
Smart Garden with Weather Station System”, 2019 IEEE.
[5]. Chandra Prakash Meher, Adyasha Sahoo, Suraj Sharma, “IoT based Irrigation and Water
Logging monitoring system using Arduino and Cloud Computing”, 2019 International
Conference on Vision Towards Emerging Trends in Communication and Networking
(ViTECoN).
[6]. Jigar Parmar, Pranay Palav, “IOT Based Weather Intelligence”, International Conference on
Communication and Signal Processing, 6 April 2016.
[7]. Harshavardhan Goud ,A. Harshika, G. Akhil, D. Charishma, K. Bhupathi, “Real Time
Based Temperature Control Using Arduino”, International Journal of Innovations in Engineering
and Technology (IJIET)
xxiv
APENDIX 1
Arduino code
#include “DHT.h”
#include
#define DHTPIN 5 // Digital Pin 5
#define DHTTYPE DHT11 // We are Using DHT11
String apiKey = “OX9T8Y9OL9HD0UBP”; // Edit this API key according to your Account
String Host_Name = “Pantech”; // Edit Host_Name
int i=1;
xxvi
}
else{
ser.println(”AT+CIPCLOSE”); // closing connection
// alert user
Serial.println(”AT+CIPCLOSE”);
}
delay(1000); // Update after every 15 seconds
}
xxvii