Project Lab Group 4
Project Lab Group 4
Submitted by
May 2024
1
ECLARATIONe hereby declare that the Project Report, entitled
“Temperature and Humidity Monitoring system of an Electrical System ”,
submitted to the Department of Electrical Engineering, MANIT Bhopal a record
of original project undergone by us during the period Jan-June 2024, to the Bachelor
of Technology, Electrical Engineering, MANIT, Bhopal, represents my ideas in my
own words and where others’ ideas or words have been included, I have adequately
cited and referenced the original sources.
2
cknowledgment
We would like to express our sincere gratitude to all those who contributed to the
completion of this project. In particular, we express our heartfelt appreciation to our
esteemed teacher Dr. Narayan Prasad Patidar and Dr. Chaduvula Hemant Sir for
guiding and facilitating our project from inception to completion, invaluable
mentorship, insightful feedback, and unwavering support were instrumental in
shaping the direction and success of our project. Their expertise, encouragement, and
dedication inspired us to strive for excellence and push the boundaries of our
capabilities. Additionally, we are immensely grateful to the various online resources
and websites that provided essential references, guidance, and inspiration throughout
the development of our project. These resources played a pivotal role in our research,
analysis, and implementation efforts, contributing to the depth and breadth of our
final report or prototype. We would also like to express our gratitude to our fellow
team members for their collaborative spirit, hard work, and commitment to
excellence. Together, we navigated challenges, exchanged ideas, and collectively
contributed to the realization of our project goals. In conclusion, we extend our
sincere thanks to all individuals, resources, and entities that have supported us on this
journey. Your contributions, whether direct or indirect, have been invaluable, and we
are truly grateful for the opportunity to learn, grow, and succeed together.
.
3
ontent
Topic Page no
Cover page 1
Declaration 2
Acknowledgement 3
Content 4
List of Abbreviation 5
4
List of Abbreviation
1) IoT – Internet of Things
2) DHT- Digital Humidity and Temperature
3)Universal Serial Bus
4) LCD – Liquid Crystal Display
5) LED – Light Emitting Diode
6) SDA – Serial Data
7) A.I – Analog Input
8) D.I – Digital Input
9) GND – Ground
10) TX – Transmitting Pin
11) RX – Receiving Pin
12) VCC – Common Collector Voltage
5
Chapter 1
Introduction
6
1.1 Introduction
The Internet of Things (IoT) has emerged as a transformative technology, revolutionizing
the way we interact with our environment and manage critical systems. In today's
interconnected world, the ability to monitor and control devices remotely has become
paramount, particularly in industries where maintaining optimal operating conditions is
crucial. One such application is temperature monitoring in electrical devices, where
deviations from prescribed thresholds can lead to equipment malfunction, safety hazards,
and costly downtime. In response to these challenges, this project presents an IoT-based
temperature monitoring system tailored to the unique requirements of electrical
infrastructure. By leveraging sensor technologies, wireless communication protocols, and
cloud-based analytics, our system aims to provide real-time insights into the thermal
performance of electrical devices, enabling proactive maintenance, risk mitigation, and
enhanced operational efficiency. This report outlines the development, implementation, and
evaluation of our IoT solution, highlighting its potential to revolutionize temperature
monitoring practices and pave the way for a more resilient and connected infrastructure
landscape
1.2 Importance
Ensure Safety: The foremost objective is to ensure the safety of both personnel and
property by detecting and mitigating potential hazards associated with overheating
electrical devices.
7
anomalies, the system can initiate corrective actions to prevent damage and prolong
the lifespan of equipment.
1.3 Scope
Digital temperature monitoring in laboratories: Temperature plays a crucial role in
defining the chemical composition or integrity of volatile compounds and biological
samples respectively. With IoT’s temperature monitoring solution, a laboratory can
conduct tests and store samples in a controlled environment, to determine accurate
results.
Food Safety Compliances: IoT temperature monitoring solution allows the food
industry to monitor the temperature of these chambers allowing them to ensure that
the regulatory compliances are met. They can remotely monitor the temperature of
the items and confirm the quality of their products.
Goods in Transit: During the distribution phase, the quality of the products being
shipped is affected adversely due to changing environmental conditions.
Hence, companies develop special containers to maintain a suitable environment for
their products while they are shipped from one location to another. Using
temperature monitoring sensors allows companies to track environmental parameters.
8
Chapter 2
Methodology
9
2.1 Hardware Required
1. NODE MCU ESP 8266
2. DHT 11 sensor
3. Breadboard
4. Jumperwire
Fig2.1
About: The ESP8266 integrates a Tensilica L106 32-bit microcontroller unit (MCU)
with a Wi-Fi stack, making it capable of connecting to Wi-Fi networks and
communicating over the internet.
Variants: There are several variants of the ESP8266, with the ESP-01 being one of
the most common. Other variants include ESP-12, ESP-07, ESP-201, etc., offering
different form factors and pin configurations.
10
Applications: The ESP8266 is used in a wide range of applications, including home
automation, sensor networks, smart agriculture, industrial automation, and more. Its
small size and low power consumption make it suitable for battery-powered devices.
Community: There is a large and active community around the ESP8266, providing
libraries, tutorials, and support for developers and hobbyists. This community has
contributed to the widespread adoption of the ESP8266 in DIY electronics projects.
ESP32: Building on the success of the ESP8266, Espressif Systems released the
ESP32, which is a more powerful successor with Bluetooth capabilities, more GPIO
pins, and other enhancements. However, the ESP8266 remains popular for simpler
projects or those that only require Wi-Fi connectivity.
Pinout :
Fig2.2
11
8. Can be used as Station or Access Point or both combined0
9. Supports Deep sleep (<10uA)
10. Supports serial communication hence compatible with many development
platform like Arduino
11. Can be programmed using Arduino IDE or AT-commands or Lua Script
Working
USB-to-Serial Converter: The NodeMCU board includes a USB-to-serial converter
chip (usually CH340 or CP2102), which allows it to communicate with a computer
over USB. This converter chip handles the conversion between USB signals from the
computer and serial signals used by the ESP8266, facilitating programming and
debugging.
Voltage Regulator: The NodeMCU board typically includes a voltage regulator that
regulates the input voltage to a stable level required by the ESP8266 and other
components on the board. This ensures that the board operates reliably regardless of
variations in the input voltage.
Wi-Fi Connectivity: One of the key features of the ESP8266 is its built-in Wi-Fi
capability. The NodeMCU leverages this feature, allowing it to connect to Wi-Fi
networks and communicate with other devices or servers over the internet. This
enables a wide range of IoT applications, such as remote monitoring, home
automation, and data logging.
GPIO Pins: The NodeMCU board exposes the GPIO (General Purpose Input/Output)
pins of the ESP8266, allowing users to interface with external components such as
sensors, actuators, and displays. These pins can be configured as digital inputs or
outputs, analog inputs, or specialized interfaces such as I2C or SPI.
12
2. DHT 11 sensor
Fig 2.3
The DHT11 is a basic, low-cost digital temperature and humidity sensor. It's
commonly used in various electronic projects, particularly those related to
environmental monitoring and home automation. Here's a breakdown of its features
and how it works:
Digital Output: The DHT11 provides a digital output signal, making it easy to
interface with microcontrollers or other digital circuits. It communicates over a
single-wire serial interface, transmitting data in the form of digital pulses.
13
data is encoded in a specific format, typically consisting of 40 bits, including the
measured values and checksum bits for error checking.
Usage: The DHT11 sensor is widely used in DIY electronics projects and
prototyping due to its simplicity and affordability. It can be interfaced with popular
development boards like Arduino, Raspberry Pi, and ESP8266. Libraries and
example code are available for various platforms, making it easy to integrate the
DHT11 sensor into projects for monitoring and controlling temperature and
humidity.
DHT11 Specifications
3.Breadboard
Fig2.4
14
A breadboard is a fundamental tool used in electronics prototyping to create
temporary circuits without the need for soldering. It allows you to quickly and easily
connect electronic components together for testing and experimentation.
Features of Breadboard
Grid of Holes: The main feature of a breadboard is its grid of holes, which are used
to insert electronic components and wires.
Connection Strips: The holes in a breadboard are internally connected in rows and
columns. These connections allow components inserted into certain holes to be
electrically connected.
Power Rails: Breadboards often have strips running along the top and bottom edges,
called power rails. These are used for providing power to the circuit, usually through
a power supply or battery.
Reusable: Components and wires can be easily inserted and removed from a
breadboard, making it reusable for different projects.
Rapid Prototyping: Breadboards allow for quick and easy experimentation with
circuit designs, enabling rapid prototyping and iteration.
4.Jumperwire
Fig2.5
15
2.3 Software Required
1. Blynk cloud
2. Google Sheet
3. Arduino IDE
features
Data Communication: Blynk Cloud acts as a central hub for data exchange between
IoT hardware devices and the Blynk mobile app. It facilitates real-time
communication, allowing users to send commands to their devices and receive data
from them instantly.
Remote Access: Blynk Cloud enables users to remotely access and control their IoT
devices from anywhere with an internet connection. This allows for remote
monitoring, management, and interaction with IoT projects using the Blynk mobile
app.
16
Scalability and Reliability: Blynk Cloud is designed to be highly scalable and
reliable, capable of handling a large number of connected devices and users
simultaneously. It ensures a seamless and consistent user experience, even under
heavy loads.
2.Google sheet
features
Cloud Storage: Spreadsheets are stored in the cloud, so you don't need to worry
about losing your work if your device malfunctions. Changes are automatically saved
as you work.
Accessibility: Google Sheets can be accessed from any device with an internet
connection, including computers, smartphones, and tablets, making it convenient for
users to work on their spreadsheets on the go.
Formulas and Functions: Like Excel, Google Sheets supports a wide range of
formulas and functions for performing calculations, manipulating data, and analyzing
information.
Data Visualization: Google Sheets includes tools for creating charts, graphs, and
pivot tables to visualize data and gain insights from your spreadsheet.
17
3.Arduino IDE
features
Code Editor: The IDE includes a text editor with syntax highlighting, making it easy
to write and edit Arduino code (which is based on C/C++).
Compiler: The IDE contains a compiler that translates the Arduino code into
machine-readable instructions (known as machine code or binary code) that can be
understood by the microcontroller.
Serial Monitor: This feature allows developers to monitor the serial communication
between the Arduino board and a connected computer, making it useful for
debugging and troubleshooting.
Library Manager: The IDE includes a library manager that allows users to easily
install and manage libraries (collections of pre-written code) for interfacing with
sensors, actuators, displays, and other peripherals.
Board Manager: The IDE supports a wide range of Arduino-compatible boards. The
board manager allows users to easily install support for different types of boards and
microcontrollers.
Upload Functionality: The IDE provides a simple interface for uploading compiled
code to the Arduino board via USB, allowing users to quickly deploy their programs
and test them in real-world applications.
Examples and Tutorials: The IDE comes with a variety of built-in examples and
tutorials to help beginners get started with Arduino programming and electronics
projects.
18
2.5 circuit diagram
Fig2.6
19
2.6 Block diagram
Fig2.7
20
2.7 working
This working description provides a detailed overview of how the IoT-based
temperature and humidity monitoring system operates. Each step plays a crucial role
in ensuring the system effectively collects, validates, and transmits sensor data to the
cloud services for visualization and logging
1. Initialization:
The system initializes the hardware components, including the microcontroller (e.g.,
ESP8266/ESP32), temperature and humidity sensor (e.g., DHT22), and establishes a
connection to the Wi-Fi network. Software initialization involves setting up libraries
and variables needed for communication with Blynk Cloud and Google Sheets.
The microcontroller connects to the configured Wi-Fi network using the provided
SSID and password.
The temperature and humidity sensor reads environmental data (temperature and
humidity) at regular intervals.The sensor data is then stored in variables for further
processing.
The system checks whether the sensor data is valid ( or out of range).If the data is
valid, the flow continues; otherwise, the invalid data is discarded, and the system
waits for the next reading.
Valid sensor data is sent to Blynk Cloud using the Blynk library and the provided
authentication token. Blynk widgets (e.g., Value Display) in the Blynk app are
updated with the latest temperature and humidity values.
The system sends valid sensor data to Google Sheets using the Google Sheets API.
Authentication credentials are used to authenticate and authorize access to the
21
Google Sheets document. The data is appended to the designated spreadsheet,
creating a log of temperature and humidity readings over time.
7.End:
The system repeats the process, continuously monitoring temperature and humidity,
sending data to both Blynk Cloud and Google Sheets at regular intervals.
22
Fig2.10 Setting web dashboard
23
2.9 Google Sheet setup
Create credentials (API key or OAuth client ID) for accessing the API.
Fig2.13
Name your spreadsheet and add column headers, such as "Time" and
"Temperature".
Fig2.14
24
2.10 Arduino IDE code
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include "DHT.h"
#include <BlynkSimpleEsp8266.h>
25
//----------------------------------------
String GAS_ID =
"AKfycbyNymLr1FTuO7jA7frV07IM6ubjtaiKDi2Qo4jDG8fh7xMIVor2-
_SvYQhErNkDwOEusw"; //--> spreadsheet script ID
void setup() {
26
delay(250);
//----------------------------------------
}
//----------------------------------------
digitalWrite(ON_Board_LED, HIGH); //--> Turn off the On Board LED when
it is connected to the wifi router.
Serial.println("");
Serial.print("Successfully connected to : ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
Serial.println();
//----------------------------------------
client.setInsecure();
}
void loop() {
Blynk.run();
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
int h = dht.readHumidity();
// Read temperature as Celsius (the default)
float t = dht.readTemperature();
// Check if any reads failed and exit early (to try again).
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor !");
delay(500);
return;
}
27
String Temp = "Temperature : " + String(t) + " °C";
String Humi = "Humidity : " + String(h) + " %";
Serial.println(Temp);
Serial.println(Humi);
28
"User-Agent: BuildFailureDetectorESP8266\r\n" +
"Connection: close\r\n\r\n");
Serial.println("request sent");
//----------------------------------------
29
2.11 Code explanation
Then, it defines Blynk template ID, template name, and authentication token.
2.Variable Declarations:
It declares variables like the authentication token, sensor type (DHT11), pin for DHT
sensor, WiFi credentials, host for Google Sheets script, port for HTTPS
communication, and a Google Sheets script ID.
3.Setup Function:
Connects to Blynk server using the authentication token and WiFi credentials.
4.Loop Function:
Sends the temperature and humidity values to the Blynk app for remote monitoring.
30
5.send Data Function:
Sends an HTTP GET request with the data to the Google Sheets script.
Overall, this code allows you to monitor temperature and humidity remotely via the
Blynk app and log the data to Google Sheets for further analysis.
31
Chapter 3
Result and analysis
32
Through the Blynk app's intuitive interface, users can conveniently view real-time
temperature data, enabling them to monitor environmental conditions from anywhere
with an internet connection.
33
Chapter 4
Discussion
4.2 limitation
Accuracy: Sensor accuracy may vary, especially in extreme temperature conditions or
over extended periods of use. It's essential to understand the sensor's specifications and
limitations regarding accuracy and precision.
Dependency on Internet Connectivity: Since the system relies on the Blynk cloud
platform, uninterrupted internet connectivity is essential for real-time monitoring.
Any disruption in internet service could affect the system's functionality.
Response Time: The sensor's response time, or the time it takes to detect and report
changes in temperature, could affect the system's ability to provide real-time
monitoring. Slow response times may result in delayed notifications or actions.
35
Cost: While ESP8266 modules are relatively inexpensive, the overall cost of
implementing the system, including sensors, networking equipment, and cloud
services, could be a limiting factor for some applications or budgets.
36
Chapter 5
Conclusion
5.1 Conclusion
37
the implementation of our IoT-based temperature monitoring system for electrical
devices represents a significant step towards ensuring the safety and reliability of
critical infrastructure. Through our project, we have successfully demonstrated the
feasibility and effectiveness of real-time temperature monitoring in mitigating the
risk of overheating and potential damage to electrical equipment. Our system has
shown promising results in terms of accuracy, reliability, and scalability, providing
valuable insights into the operational status of monitored devices. While we have
encountered challenges such as sensor calibration and data transmission latency, our
findings underscore the importance of continuous refinement and optimization in IoT
deployment. Looking ahead, we envision further enhancements to our system,
including the integration of predictive analytics and remote control functionalities, to
enable proactive maintenance and optimize energy consumption. Overall, our project
contributes to the growing body of research in IoT-enabled infrastructure monitoring
and lays the foundation for future advancements in this field.
38