0% found this document useful (0 votes)
63 views45 pages

Weather Monitoring IOT

Uploaded by

Muhammad Saeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views45 pages

Weather Monitoring IOT

Uploaded by

Muhammad Saeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

DHA SUFFA UNIVERSITY

WEATHER HEALTH MONITORIING USING


IOT

“A report submitted as Final year project report in the Department of


Electrical Engineering”

Prepared by:
Wajad Raza Perzado
EE181042

Contents
Chapter - 1 .....................................................................................................................................................................5
Introduction ...................................................................................................................................................................5
Overview ....................................................................................................................................................................7
Literature Review.......................................................................................................................................................8
Chapter - 2 ...................................................................................................................................................................11
Literature Review ........................................................................................................................................................11
IoT (Internet of Things) ............................................................................................................................................12
IoT Key Features ......................................................................................................................................................12
IoT– Advantages ......................................................................................................................................................13
IoT– Disadvantages ..................................................................................................................................................14
IoT Software.............................................................................................................................................................15
Internet of Things - Technology and Protocols ........................................................................................................16
Internet of Things - Common Uses ..........................................................................................................................17
Block Diagram ..........................................................................................................................................................18
Advantages of Proposed System .............................................................................................................................19
Features of purposed system ..................................................................................................................................21
Purposed Hardware Architecture ...........................................................................................................................22
Circuit Diagram ........................................................................................................................................................23
List of required hardware components ...................................................................................................................24
Details of Hardware Component .............................................................................................................................24
ESP32 MCU ..............................................................................................................................................................26
DHT11(Temperature & Humidity sensor) ................................................................................................................28
BMP180 (Pressure Sensor) ......................................................................................................................................29
Rain Sensor Module .................................................................................................................................................30
Photoelectric Resistor (Light Sensor) .......................................................................................................................31
Resistors ..................................................................................................................................................................33
Veroboard ................................................................................................................................................................33
DC Power Jack ..........................................................................................................................................................34
Power Adopter (5V) .................................................................................................................................................35
Chapter - 4 ...................................................................................................................................................................36
Algorithm .....................................................................................................................................................................36
Flow chart of the system ............................................................................................ Error! Bookmark not defined.
ESP32 MCU ..............................................................................................................................................................38
Chapter - 5 ...................................................................................................................................................................39
Implementation ...........................................................................................................................................................39
Prototype mode of the system ................................................................................................................................40
Chapter - 6 ...................................................................................................................................................................42
Conclusion and Future Scope ......................................................................................................................................42
Conclusion ...............................................................................................................................................................43
Future Scope ............................................................................................................................................................43
References ...................................................................................................................................................................44
Abstract

In an era marked by increasing climate variability and the growing importance of


accurate weather data, there is a pressing need for an IoT- based weather monitoring
system. This report introduces an innovative system that leverages Internet of Things (IoT)
technology to advance weather monitoring and global data accessibility. By seamlessly
connecting various devices, such as sensors, electronic gadgets, and automotive
electronics, to the internet, this system offers a comprehensive solution for monitoring
environmental conditions like temperature, relative humidity, and rain levels. Specialized
sensors collect data, which is then transformed into graphical interface, enabling real-time
weather information access worldwide. This system has transformative potential in fields
like agriculture, urban planning, and environmental research, redefining how we interact
with and interpret environmental data with its efficiency and global reach.
Chapter - 1

Introduction
Introduction
Introducing a state-of-the-art smart weather monitoring system poised to
revolutionize the way we access and utilize weather data via the Internet. Traditional
reliance on weather forecasting agencies is being transcended by this innovative system,
which seamlessly brings weather parameter reporting directly to users. At its core, this
system harnesses the potential of cutting-edge technologies such as the Internet of Things
(IoT) and Cloud computing.

By integrating temperature, humidity, light and rain sensors, the system


continuously monitors and delivers real-time weather statistics. This dynamic sensor array
enables users to obtain precise weather information without delay. IoT principles underpin
the system's architecture, connecting a range of devices to the internet and facilitating the
effortless transfer of data to the Cloud. This cloud-based infrastructure acts as a central hub
for collecting, processing, and disseminating weather data.

This practical and versatile system extends beyond mere data collection. It
represents a tangible application of IoT, allowing for the seamless collection, analysis, and
utilization of diverse weather parameters. Users can set up alerts for specific weather
events, receive notifications, adjust appliances, and perform in-depth long-term analyses—
all with ease. Furthermore, graphical representations aid in reading data, enhancing its
interpretability.

Key components of this system include the Arduino Nano board, a microcontroller
board with versatile capabilities, and the DHT11 temperature and humidity sensor,
instrumental in detecting and reporting these essential parameters. A WIFI module ESP32
is employed to transmit the collected data to a web server, ensuring real-time updates and
accessibility from anywhere across the globe.

In a rapidly evolving world, the Internet of Things is poised to reshape


environmental monitoring, allowing for the capture, processing, and transmission of
weather parameters through a network of sensors and devices. The Cloud aspect of the
system provides essential resources like data storage and computing power, all with
minimal user intervention. This synergy between IoT and Cloud technologies ushers in a
new era of weather monitoring and reporting.

This system's utility extends to various domains, including agriculture, urban


planning, and environmental research. Users can remotely and effortlessly monitor weather
conditions from different geographic locations. The system's continuous data transmission
ensures that real-time information is promptly relayed to the online server, keeping users
informed and prepared.

In addition to its reporting capabilities, the system empowers users to configure


alerts for specific weather occurrences, adding a layer of proactive functionality. In
summary, this IoT-based Weather Monitoring and Reporting system presents a
comprehensive, efficient, and user-friendly approach to weather data acquisition and
dissemination in today's interconnected world.

Overview
To construct the system, follow the assembly instructions outlined in the circuit
diagram. Employ the Arduino IDE to program the Arduino Nano microcontroller. Upon
successful programming, the NodeMCU, equipped with an integrated Wi-Fi module, will
display a confirmation message on your screen.
In this setup, we interface four essential sensors namely, the BMP180, DHT11,
Photoelctric Resistor and Rain Sensor with the Arduino Nano. These sensors collectively
provide the requisite weather data for comprehensive monitoring. The amalgamated data
is transmitted over the Internet, rendering it accessible from any location. Upon successful
hardware programming, The ESP32 MCU is configured to establish a connection with
Firebase, allowing it to read real-time numerical monitoring data. This numerical data can
then be accessed through standard web browsers like Chrome, Firefox, or Internet
Explorer, presenting it in an aesthetically pleasing Graphical User Interface (GUI) format.
The system comprehensively monitors vital weather parameters, including
temperature, pressure, humidity, light and rainfall. Moreover, the data can be accessed
remotely via the internet, as we have publicly hosted the server over firebase. To enhance
accessibility, we have also developed an Android application, simplifying the interaction
with our weather monitoring system for users.

Literature Review
In this paper [1], the author discusses the increasing significance of weather
prediction systems, particularly in the context of extreme weather events that have adverse
impacts on both lives and property. The paper emphasizes the critical challenge of
improving the accuracy of weather data to enhance predictive capabilities and bolster
resilience against detrimental weather conditions. Developing countries, such as Uganda,
and others face difficulties in generating timely and precise weather data due to limited
weather observation resources and the high costs associated with developing automated
weather monitoring systems. The limited funding available to national meteorological
services in these countries exacerbates this challenge.
To address these issues, the author proposes the development of an Automatic
Weather Monitoring Station (AWS) based on a wireless sensor network. The plan involves
creating three generations of AWS prototypes, with each iteration aiming to enhance
functionality and utility based on the specific needs of its generation. The author also
underscores the importance of improving non-functional aspects such as power efficiency,
data accuracy, reliability, and data transmission while concurrently reducing costs to make
AWS technology more robust and affordable. The intended outcome of this proposed work
is to enable developing nations, like Uganda, to acquire AWS systems in sufficient
quantities, ultimately improving weather forecasting capabilities.
In a different research paper [2], the author introduces an IoT-based weather
monitoring system. This system leverages various sensors to collect environmental
parameters, including humidity, temperature, pressure, rain levels, and light intensity using
an LDR sensor. Additionally, the system calculates the dew point value from temperature
data. The implementation includes an SMS alert system triggered when sensing parameters
exceed predefined thresholds, enhancing the system's practicality. Furthermore, the author
integrates email and tweet alerting systems into the weather monitoring process. The
hardware components of this system include the Node MCU 8266 and a range of sensors.
Another research paper [3], presents a low-cost live weather monitoring system
incorporating an OLED display. The author highlights the transformative potential of IoT
in various fields and describes this innovative system for real-time weather condition
monitoring. The live weather monitoring system is positioned as a valuable tool for
farmers, industries, daily activities, and educational institutions, simplifying weather-
related decision-making. The system utilizes an ESP8266-EX microcontroller-based
WeMos D1 board, executed with Arduino, to retrieve data from the cloud. This board,
equipped with 4MB of flash memory, is programmed with Node MCU and Arduino IDE.
The system collects weather data using only two components: WeMos and OLED. Data is
stored on the ThingSpeak cloud platform for accessibility and is simultaneously displayed
on the OLED screen. The primary objective of this system is to provide live weather
information through the OLED display.
In a different context, the author of reference [4], proposes a comprehensive
weather monitoring and prediction system that can aid individuals in their day-to-day
activities, particularly in sectors such as agriculture and industry. This system consists of
two stages: sensing weather conditions and utilizing deep learning technology for real-time
reporting on stations and buses. Weather forecasting is accomplished through a friction
model, with multilayer perception models and long-term memory used for training and
verification. The system's performance is evaluated against data from environmental
protection agencies and observation systems. The author emphasizes the reliability of this
system in monitoring weather conditions and its potential to provide one-day weather
forecasts.
Lastly, in reference [5], the author implements an IoT-based weather monitoring
system with a focus on using IoT technology to monitor weather conditions and detect
climate-changing patterns. The system employs various sensors to collect climate data,
which is then stored in the cloud for analysis and dissemination. The algorithm, known as
the swarm algorithm, is used to enhance data accuracy. This project aims to raise awareness
of climate condition changes and provides an accurate and efficient output. Rain detection
is achieved using a rain sensor, which measures voltage changes when raindrops contact
its strips.
These research papers collectively highlight the importance of weather monitoring
and prediction systems in various contexts and present innovative approaches to address
the associated challenges. They showcase advancements in sensor technology, data
analysis, and communication methods, ultimately contributing to improved weather
forecasting and awareness.
Chapter - 2

Literature Review
Literature Review

1.

IoT (Internet of Things)


The Internet of Things (IoT) represents a cutting-edge automation and analytical
framework that leverages networking, sensing capabilities, big data analysis, and artificial
intelligence technology to offer comprehensive solutions for products or services. These
integrated systems provide increased visibility, control, and operational efficiency when
deployed in various industries and systems.
IoT systems demonstrate remarkable versatility and adaptability across diverse
industries, making them well-suited for deployment in virtually any environment. They
revolutionize data gathering, automation processes, operational procedures, and more by
harnessing the capabilities of intelligent devices and robust enabling technologies.

IoT Key Features


Among the key attributes of IoT, significant elements encompass artificial
intelligence, connectivity, sensor technology, active engagement, and the utilization of
compact devices. Below, we provide a concise overview of these essential characteristics.

• Artificial Intelligence (AI): IoT essentially imbues everyday objects with intelligence,
enriching various aspects of life by harnessing the potential of data gathering, artificial
intelligence algorithms, and interconnected networks. This could manifest as something as
straightforward as empowering your refrigerator and pantry to detect when your milk and
favorite cereal are running low and automatically placing an order with your preferred
grocery store.
• Connectivity: With emerging networking technologies, including those specific to IoT,
networks are no longer limited to major providers. IoT enables the creation of smaller,
more cost-effective networks that remain highly functional. These compact networks
interconnect IoT devices within its ecosystem.
• Sensors: Sensors are integral to IoT, serving as pivotal instruments that elevate IoT from
a passive network of devices into an active system capable of seamless integration with the
real world.
• Active Engagement: Much of our interaction with connected technology today is passive
in nature. IoT introduces a fresh perspective, emphasizing active engagement with content,
products, or services.
• Compact Devices: As anticipated, devices have progressively evolved to become smaller,
more affordable, and more powerful. IoT leverages purpose-built, compact devices to
deliver precision, scalability, and adaptability to its functionalities.

IoT– Advantages
The benefits of IoT encompass nearly every facet of both daily life and business
operations. Here is an elaboration on some of the advantages offered by IoT:
• Enhanced Customer Engagement: Traditional analytics often exhibit limitations and
inaccuracies, resulting in passive interactions. IoT, however, brings about a
transformative shift, enabling deeper and more effective engagement with audiences.
This means businesses can connect with customers in more meaningful ways,
understanding their preferences and needs with greater precision.
• Technology Optimization: The same technologies and data that enhance the customer
experience also play a crucial role in optimizing device utilization and fostering
significant advancements in technology. IoT unlocks a treasure trove of valuable
functional and field data that can be harnessed to drive innovation and efficiency.
• Reduction in Waste: IoT excels in pinpointing areas that require improvement. While
conventional analytics often provide surface-level insights, IoT delivers real-world data
that enables more efficient resource management. By offering granular insights, IoT
empowers organizations to identify and rectify inefficiencies, ultimately reducing waste.
• Enhanced Data Collection: Modern data collection methods sometimes grapple with
limitations and passive usage designs. In contrast, IoT breaks free from these constraints
and positions data where it truly matters – in the heart of actionable insights. It facilitates
the acquisition of a comprehensive and precise depiction of various aspects of the world,
empowering individuals and organizations alike to make more informed decisions based
on accurate and comprehensive data.

IoT– Disadvantages
While IoT undeniably offers a remarkable array of advantages, it concurrently
presents a substantial array of challenges. Here, we delve into some of the prominent
issues that IoT encounters:

• Security Concerns: IoT creates a vast ecosystem of perpetually interconnected devices


communicating through networks. Despite implementing security measures, the system
often provides limited control, leaving users vulnerable to various potential threats from
malicious actors seeking to exploit vulnerabilities.
• Privacy Implications: The intricacy of IoT systems yields a wealth of highly detailed
personal data without necessitating active user participation. This level of data collection
raises significant privacy concerns as users may find their personal information exposed
to unintended parties.
• Complexity in Implementation: IoT systems can be perceived as complex due to their
multifaceted design, deployment intricacies, and the incorporation of a diverse range of
technologies and emerging enabling technologies. This complexity can pose challenges
for those tasked with their setup and maintenance.
• Interoperability Challenges: A recurring concern centers around the interoperability of
IoT systems with one another and existing technologies. Users worry about the potential
for conflicts or locked-in systems, which could hinder seamless integration and limit
flexibility in adopting new IoT solutions.
• Compliance Obligations: Like any technological advancement in the business domain,
IoT must adhere to regulatory compliance standards. However, the inherent complexity
of IoT often amplifies the perceived difficulty of ensuring compliance, especially when
compared to more conventional software compliance measures.
IoT Software
IoT software operates at the core of its networking and operational aspects,
functioning through a robust framework that encompasses platforms, embedded systems,
partner systems, and middleware. These individual and overarching applications play
pivotal roles in data acquisition, device integration, real-time analytics, and the expansion
of applications and processes within the IoT network. Furthermore, they capitalize on their
ability to seamlessly integrate with essential business systems, including order processing,
robotics, scheduling, and more, to execute a wide array of interconnected tasks.

• Data Collection: This software segment specializes in the meticulous management of data
acquisition. It oversees sensing operations, measurements, light data filtering, and data
security, facilitating the aggregation of data from various sources. Employing specific
protocols, it enables sensors to connect to real-time machine-to-machine networks.
Subsequently, it accumulates data from multiple devices and adheres to predefined
distribution settings. Furthermore, it has the capacity to distribute data across devices when
needed. Ultimately, this software transmits all accumulated data to a central server for
further processing.
• Device Integration: Software dedicated to integration plays a critical role in establishing
cohesive relationships among all system devices, forming the backbone of the IoT system.
Its primary responsibility is to ensure seamless cooperation and dependable networking
between devices. These applications serve as the cornerstone of IoT technology, as they
are essential for enabling communication among devices with varying applications,
protocols, and operational constraints.
• Real-Time Analytics: Within the IoT ecosystem, real-time analytics applications serve as
the bridge between raw data and actionable insights. They receive data inputs from diverse
devices and transform them into actionable patterns or clear information for human
analysis. By leveraging various predefined settings and configurations, these applications
perform automated tasks and deliver crucial industry-specific data.
• Application and Process Extension: These software applications expand the capabilities
of existing systems and software to foster a more expansive and effective operational
landscape. They facilitate the integration of designated devices for specific purposes, such
as granting access to certain mobile devices or engineering instruments. This extension
enhances overall productivity and bolsters the accuracy of data collection processes.

In essence, IoT software operates within a multifaceted framework that synergizes


data management, device integration, real-time analytics, and the broadening of
applications and processes. It seamlessly integrates with critical business systems, forging
a dynamic ecosystem that enables the IoT network to fulfill its potential across a spectrum
of industries and applications.

Internet of Things - Technology and Protocols


IoT predominantly leverages conventional protocols and networking technologies.
However, at the core of IoT's capabilities lie key enabling technologies and protocols, each
tailored to cater to the specific networking requirements that set IoT apart from traditional
uniform network systems. Here, we delve into these major enabling technologies and
protocols that serve as the backbone of IoT:

• RFID (Radio-Frequency Identification) and NFC (Near-Field Communication):


RFID and NFC technologies offer straightforward, energy-efficient, and versatile solutions
for identity verification, access control tokens, connection establishment, and secure
payments. RFID employs two-way radio transmitter-receivers to identify and track tags
associated with objects. NFC encompasses communication protocols that facilitate
seamless interaction between electronic devices, typically involving a mobile device and a
standard device.
• Low-Energy Bluetooth: This technology is tailored to meet the low-power, extended
usage requirements inherent in IoT applications. It harnesses a standardized technology
with native compatibility across various systems, making it ideal for energy-efficient IoT
functions.
• Low-Energy Wireless: Addressing the most power-consuming aspect of an IoT system,
low-energy wireless technologies enable efficient communication. While sensors and other
components can power down during idle periods, communication links, especially wireless
ones, must remain in listening mode. Low-energy wireless solutions not only reduce power
consumption but also extend the lifespan of IoT devices by minimizing active usage.
• Radio Protocols (e.g., ZigBee, Z-Wave, Thread): These radio protocols are designed for
establishing low-rate private area networks, offering a balance between low power
consumption and high throughput. Unlike some comparable options, ZigBee, Z-Wave, and
Thread technologies empower small, local device networks without incurring typical costs,
making them highly suitable for IoT applications.
• LTE-A (LTE Advanced): LTE-A represents a significant enhancement of LTE
technology, boasting expanded coverage, reduced latency, and increased throughput. This
technology substantially extends the reach of IoT applications, with notable applications
in areas like vehicle communications, Unmanned Aerial Vehicles (UAVs), and similar
domains.
• WiFi-Direct: WiFi-Direct eliminates the need for an access point, enabling direct peer-to-
peer (P2P) connections with the speed and capabilities of traditional WiFi networks while
maintaining low latency. This technology eliminates an element of network complexity
that often introduces bottlenecks, all without compromising on speed or throughput.

In essence, these enabling technologies and protocols constitute the foundational


elements that empower IoT to seamlessly connect and communicate across a diverse range
of devices and applications. They are customized to meet the unique networking
requirements that IoT demands, setting it apart from conventional networking systems.

Internet of Things - Common Uses


IoT's pervasive reach extends across all industries and markets, catering to a
diverse spectrum of users ranging from individuals seeking to curtail energy consumption
in their homes to large enterprises aiming to streamline their operations. It is not merely a
useful tool but an increasingly indispensable one in numerous industries, particularly as
technology continues to advance, propelling us toward the sophisticated automation
envisioned in the distant future.
• Engineering, Industry, and Infrastructure: IoT applications in these domains
encompass enhancements in production, marketing, service delivery, and safety. By
providing robust monitoring capabilities, IoT brings about heightened transparency,
offering greater visibility into areas ripe for improvement. This deeper level of control
facilitates swift actions in response to various opportunities, including addressing
customer needs, identifying nonconforming products, rectifying equipment malfunctions,
optimizing distribution networks, and more.
• Government and Safety: IoT's application in government and safety sectors contributes
to improvements in law enforcement, defense, city planning, and economic management.
It bridges existing gaps, rectifies prevalent flaws, and extends the reach of these
endeavors. For instance, IoT aids city planners in gaining clearer insights into the impact
of urban design choices, and governments benefit from a more comprehensive
understanding of local economic dynamics.
• Home and Office: In our daily lives, IoT augments our experiences, be it at home, in the
workplace, or when engaging with organizations. This heightened connectivity and
personalization enhance overall satisfaction, boost productivity, and bolster our health
and safety. For example, IoT enables us to tailor our office spaces for optimal work
performance.
• Health and Medicine: IoT propels us closer to a future in medicine characterized by a
highly integrated network of sophisticated medical devices. In the present day, IoT
substantially augments medical research, device capabilities, patient care, and emergency
response. The seamless integration of various elements yields greater precision,
meticulous attention to detail, rapid response to critical events, and continuous refinement
while mitigating the typical overhead associated with medical research and organizational
processes.
In essence, IoT's versatility and adaptability empower it to address a myriad of
challenges and opportunities across diverse industries, ultimately shaping a more
connected, efficient, and advanced world.

Block Diagram

DHT 11
Arduino Nano Cloud
BMP 180

LDR
ESP32
MCU
Mobile

Advantages of Proposed System


• Decreased field damaging conditions
• Improved safety and security
• High-quality receiving data
• Less power consumption
• Accuracy is High
• Smart way to monitor Environment
• The low cost and efforts are less in this system
Chapter - 3
Proposed System and
Hardware Architecture

2.
Features of purposed system
In the IoT-enabled weather monitoring system project, the Arduino Uno serves as
the central component, tasked with the measurement of four essential weather
parameters. These parameters encompass temperature, humidity, light intensity, and
rainfall levels, each meticulously monitored by their dedicated sensors. The seamless
integration of these sensors with the Arduino Uno is facilitated by the board's built-in
Analog to Digital Converter (ADC) capabilities, simplifying the data acquisition process.

The hallmark of this weather monitoring system lies in its unwavering


commitment to delivering unparalleled accuracy and reliability in the realm of weather
tracking and climate observation. It accomplishes this feat by harnessing the power of
renewable energy sources, primarily relying on solar panels to charge the connected
battery. This sustainable energy approach ensures that the system remains operational,
even in remote or off-grid locations.

One of the system's standout features is its ability to access real-time weather
information and data via the World Wide Web. This dynamic connectivity opens up a
world of possibilities, allowing users to stay informed about current weather conditions
and any ongoing climate changes at their fingertips. Moreover, the system is designed to
communicate seamlessly over General Packet Radio Service (GPRS) networks, further
enhancing its accessibility and reach.

For end users, the system's low-maintenance design is a key advantage. It


minimizes the need for constant upkeep and technical interventions, making it an ideal
solution for both professionals and enthusiasts with varying levels of technical expertise.
Furthermore, the system excels in data management, offering robust storage capabilities
and the flexibility to provide data to users on-demand, ensuring that valuable weather
insights are readily available whenever required. In essence, this IoT-enabled weather
monitoring system represents a cutting-edge fusion of technology and sustainability,
ushering in a new era of precision weather monitoring and accessibility.
Purposed Hardware Architecture
The system we have developed is comprised of a microcontroller, specifically the
ESP8266, serving as the central processing unit that orchestrates the entire operation. This
versatile microcontroller acts as a hub, allowing seamless connections with a variety of
sensors and devices. These interconnected sensors are under the control of the
microcontroller, which, in turn, efficiently extracts data from them.
The microcontroller takes on the responsibility of collecting data from these
sensors, harnessing their capabilities to monitor and analyze key environmental
parameters. These parameters include temperature, humidity, atmospheric pressure, and
rainfall. Through this comprehensive data collection process, the system gains a nuanced
understanding of the current environmental conditions.
The remarkable versatility of the ESP8266 extends further, as it facilitates the
transmission of this valuable data to the internet. This is achieved through a Wi-Fi module
that is seamlessly integrated into the system. This connection is managed with the Blynk
app, a user-friendly platform that streamlines the process of sharing the sensor data with
the online world.
By harnessing this connectivity, the system transcends geographical boundaries,
making it possible for users to access real-time information about temperature, humidity,
pressure, and rainfall from anywhere with an internet connection. This data becomes a
valuable resource for various applications, including weather forecasting, environmental
monitoring, and even smart home automation.
Circuit Diagram

F IGURE 2: W IRING D IAGRAM


List of required hardware components
Serial No. Name of the components
1. Arduino Nano
2. ES32 MCU
3. DHT11 (Temperature, Humidity Module)
4. BMP180 (Atmospheric Pressure Module)
5. Rain Sensor Module
6. Photoelectric Resistor
8. Resistors
9. Veroboard
10. DC Power Jack
11. 5V Power Adopter

T ABLE 2: H ARDWARE C OMPONENTS

Details of Hardware Component


2.1.1. Arduino Nano
The Arduino Nano is a compact yet powerful microcontroller board, built around
the ATmega328P microcontroller chip. This versatile board offers a rich array of features,
making it a popular choice for a wide range of electronics projects.
At its core, the Arduino Nano features 14 digital input/output pins, with six of them
capable of serving as PWM (Pulse Width Modulation) outputs. Additionally, there are six
analog input pins, which are useful for interfacing with sensors and analog devices. The
board operates with a 16 MHz ceramic resonator for precise timing.
Connectivity options on the Arduino Nano include a USB connection, enabling
easy communication with a computer for programming and data transfer. It also includes
a power jack, facilitating external power supply, an ICSP (In-Circuit Serial Programming)
header, and a reset button for convenient control and programming tasks.
One of the key advantages of the Arduino Nano is its compact size, which makes it
suitable for projects with space constraints or those requiring portability. Despite its small
form factor, it provides the essential components and capabilities needed for
microcontroller-based projects.
Another noteworthy feature of the Arduino Nano is its robust compatibility with
the Arduino ecosystem. You can use the Arduino IDE (Integrated Development
Environment) to program the Nano, benefiting from a vast library of pre-existing code and
a supportive community of developers and enthusiasts.

Whether you're a beginner or an experienced maker, the Arduino Nano offers a


versatile and forgiving platform for your electronics projects. It empowers you to
experiment and innovate without the fear of irreparable mistakes. In case of unexpected
issues, the microcontroller chip can be replaced at a reasonable cost, allowing you to
resume your work with minimal disruption.

F IGURE 3: A RDUINO NANO


ESP32 MCU
The ESP32 is a highly versatile microcontroller board renowned for its advanced
capabilities and broad applicability in the realm of embedded systems and IoT (Internet
of Things) projects.

F IGURE 4: ESP32 MCU


At its heart, the ESP32 features a powerful dual-core Xtensa LX6 microprocessor,
which provides substantial processing power for a wide range of tasks. It boasts an
impressive array of 34 programmable GPIO (General-Purpose Input/Output) pins, with
many of them supporting functions such as PWM (Pulse Width Modulation), SPI (Serial
Peripheral Interface), I2C (Inter-Integrated Circuit), and UART (Universal Asynchronous
Receiver-Transmitter) communication.
This microcontroller board further distinguishes itself by offering a built-in Wi-Fi
and Bluetooth connectivity module. This feature opens the door to seamless wireless
communication and control, making it an ideal choice for IoT applications. Additionally,
the ESP32 includes various analog input pins, analog-to-digital converters (ADCs), and
capacitive touch sensors, enhancing its sensor interfacing capabilities.
Operating at a clock speed of up to 240 MHz, the ESP32 exhibits impressive
computational performance, making it suitable for a wide range of applications, from
simple sensor data collection to complex IoT systems and multimedia processing.One of
the most significant advantages of the ESP32 is its built-in support for Wi-Fi and
Bluetooth, which enables effortless communication with other devices and the internet.
This capability is particularly valuable for projects requiring remote monitoring, control,
or data transmission.
The ESP32 is well-supported by the Arduino IDE (Integrated Development
Environment), which simplifies the development process and grants access to a vast
library of pre-written code and community support. Additionally, it can be programmed
using the Espressif IDF (IoT Development Framework) for more advanced and custom
applications.
The versatility and power of the ESP32 make it an excellent choice for both
beginners and experienced developers. Its adaptability to a wide range of project
requirements, coupled with its robust connectivity options and strong community support,
position it as a leading contender in the world of microcontrollers.
DHT11(Temperature & Humidity sensor)
The DHT11 is a basic but reliable temperature and humidity sensor widely used in
electronics projects for environmental monitoring. Its simplicity and affordability make it
a popular choice, especially for beginners in the field of microcontroller-based
applications.
The DHT11 sensor provides two essential measurements: temperature and
humidity. It utilizes a capacitive humidity sensor and a thermistor for temperature
measurement. This compact sensor module typically consists of a sensor element and a
small circuit that converts the analog sensor data into digital signals, making it easy to
interface with microcontrollers.
The DHT11's output is digital, and it communicates over a single-wire interface,
simplifying its integration into various projects. It's known for its straightforward setup, as
it requires minimal external components or circuitry.
One key advantage of the DHT11 is its affordability and ease of use, making it an
excellent choice for hobbyists, educational projects, and quick prototypes. It provides
reasonably accurate temperature and humidity readings for many applications, although it
may not meet the precision requirements of more specialized projects.

F IGURE 5: DHT11 (TEMPERATURE & H UMIDITY S ENSOR )


The DHT11 is compatible with various microcontroller platforms, including
Arduino, Raspberry Pi, and others. Arduino, in particular, offers easy-to-use libraries and
examples for interfacing with the sensor, making it accessible to a wide range of users.
However, it's essential to note that the DHT11 does have limitations. Its accuracy
may be affected by factors such as drift over time and variations in environmental
conditions. For critical applications requiring high precision, other sensors with better
accuracy may be preferred.

BMP180 (Pressure Sensor)


The BMP180 is a versatile and precise sensor that specializes in measuring
atmospheric pressure and temperature. Its advanced capabilities and high accuracy make it
a popular choice for a wide range of applications, particularly in weather monitoring,
altitude measurement, and environmental sensing.
At the heart of the BMP180 lies a robust and sensitive sensor element that can
provide precise measurements of both barometric pressure and temperature. This sensor is
coupled with an integrated circuit that processes the data and delivers it in a convenient
digital format, facilitating seamless integration with microcontrollers and other electronic
devices.
One of the BMP180's standout features is its ability to provide accurate pressure
readings, which can be used to estimate altitude or predict weather changes. The
temperature measurements it offers are equally reliable and can be crucial for certain
applications where temperature variation matters.
The BMP180 communicates over a digital I2C (Inter-Integrated Circuit) interface,
enabling easy interfacing with microcontrollers such as Arduino and Raspberry Pi. It
requires minimal external components, simplifying the circuit design for projects.
What sets the BMP180 apart is its impressive precision. It can provide pressure
measurements with an accuracy of up to 0.01 hPa (hectopascals) and temperature
measurements with an accuracy of approximately 0.5°C. This level of accuracy makes it
suitable for applications where precise environmental data is critical.
The BMP180 sensor is well-supported within the Arduino ecosystem, with libraries
and example code readily available for users to implement in their projects. This support,
along with its impressive precision, makes it an attractive choice for developers and
makers.
However, it's important to note that the BMP180 is primarily designed for
atmospheric pressure and temperature measurements. If your project requires additional
environmental data, such as humidity, you may need to consider using additional sensors
or a more specialized sensor module.

F IGURE 6: BMP180 (A TMOSPHERIC PRESSURE SENSOR )

Rain Sensor Module


The rain sensor module is an essential component for detecting rainfall and
moisture in various electronic projects and systems. It provides a simple and effective
means of monitoring weather conditions and automating actions in response to rain or
wetness.
The rain sensor module typically consists of a sensor board equipped with a rain-
sensitive component, often a hygroscopic material that absorbs moisture. When raindrops
or moisture come into contact with the sensor's surface, it changes its electrical
conductivity or resistance. This change in electrical properties is then detected and
interpreted by the module's electronics.
One of the primary functions of the rain sensor module is to provide a binary
output, indicating whether it is currently raining or not. When rain is detected, the module
typically produces a digital signal, often going from a high state to a low state, signaling
the presence of rainfall.
Rain sensor modules are known for their simplicity and ease of use. They require
minimal external components and are compatible with various microcontroller platforms,
including Arduino and Raspberry Pi. This makes them accessible for both beginners and
experienced electronics enthusiasts.
Typical applications of rain sensor modules include automated weather stations,
garden irrigation systems, and smart home automation projects. For more advanced
weather monitoring or scientific applications, specialized rain gauges or weather sensors
may be necessary.

F IGURE 7: RAIN SENSOR

Photoelectric Resistor (Light Sensor)


The Light Dependent Resistor (LDR) module, also known as a photoresistor
module, plays a crucial role in electronics projects by enabling the detection of ambient
light levels. This versatile sensor is widely used for applications ranging from automatic
lighting control to environmental monitoring.
The LDR module is designed around a photoresistor, a component whose resistance
varies with the intensity of incident light. As the surrounding light levels change, the
resistance of the photoresistor follows suit. The module incorporates supporting circuitry
to translate these resistance changes into electrical signals that can be easily processed by
microcontrollers or other electronic devices.

One of the key functions of the LDR module is to provide an analog or digital
output that reflects the ambient light conditions. This allows it to be employed in various
scenarios, such as triggering lights in response to darkness or controlling the brightness of
displays based on ambient light.

The LDR module typically features a straightforward setup, making it accessible to


both beginners and experienced enthusiasts. It can be effortlessly integrated with popular
microcontroller platforms like Arduino or Raspberry Pi, often requiring minimal external
components.

One of the standout features of the LDR module is its ability to offer real-time
feedback on light levels, allowing for dynamic adjustments and automation in response to
changing illumination conditions. This attribute makes it valuable in applications like street
lighting control, security systems, and smart homes.

However, it's worth noting that while LDR modules are excellent for detecting light
levels, they may not provide precise lux measurements or color-specific information. For
applications requiring precise light measurements or color analysis, more specialized light
sensors, such as photodiodes or color sensors, may be more suitable.

F IGURE 8: P HOTOELECTRIC RESISTOR (LIGHT SENSOR )


Resistors
Resistors are vital components in electronics, offering precise control over the flow
of electric current within circuits. They come in various resistance values, tolerances, and
power ratings, allowing engineers to tailor current levels and voltage drops as needed.
Resistors are commonly used for tasks like current limiting, voltage division, biasing
transistors, and signal filtering. Their diverse applications range from everyday devices
like LEDs to intricate microcontroller-based systems. Additionally, resistors can be fixed
or variable (potentiometers) and may have temperature coefficients for specific
applications requiring stability over varying temperatures. Understanding the color code or
numerical values on resistors is essential for selecting the right one for a given circuit.
Resistors serve as the guardians of circuit integrity, preventing components from
receiving excessive current that could lead to damage. Their ability to resist the flow of
electrons, measured in ohms (Ω), ensures that electronic devices operate safely and
reliably. Whether you're designing a simple LED circuit or a complex electronic system,
choosing the appropriate resistor, considering resistance value, tolerance, and power rating,
is a fundamental step in ensuring proper functionality and performance.

F IGURE 9: RESISTOR

Veroboard
Veroboard is a widely used prototyping and circuit construction board in
electronics. It provides a convenient and organized platform for assembling electronic
circuits, particularly for hobbyists, students, and engineers during the development and
testing phases.
The Veroboard consists of a flat, rectangular board typically made of insulating
material, often fiberglass or epoxy. The board's surface is covered with a grid of copper
strips or pads arranged in a matrix pattern. These copper strips serve as electrical
connections, allowing components to be soldered onto the board and interconnected to
form a circuit.
One of the primary advantages of Veroboard is its flexibility. Electronics
enthusiasts can create custom circuit layouts by cutting and shaping the copper strips to
match their circuit design. Components such as resistors, capacitors, integrated circuits
(ICs), and transistors are soldered onto the copper pads, and copper wires can be used to
establish connections between components. Veroboard's versatility makes it suitable for
both simple and complex circuit projects.
Veroboard is commonly used for prototyping and testing electronic circuits before
they are finalized and printed on custom-designed PCBs (Printed Circuit Boards). It
offers a cost-effective and accessible way to experiment with various circuit
configurations and test ideas quickly. Additionally, it is often used in educational settings
to teach electronics and circuit design principles.

F IGURE 10: VEROBOARD

DC Power Jack
A DC power jack, also called a DC connector, is a common electrical component
used for connecting an external direct current (DC) power source to electronic devices like
laptops, routers, and audio equipment. It typically features a female connector with a
central pin (positive) and an outer sleeve (negative). The choice of size, polarity, and
voltage/current ratings depends on the specific device and its power requirements. DC
power jacks play a vital role in powering and enabling the operation of various electronic
devices, facilitating a reliable and efficient power supply connection.
F IGURE 11: DC BARREL J ACK

Power Adopter (5V)


A power adapter (5V) is an external device designed to supply a stable 5-volt direct
current (DC) power source to electronic devices. It serves as an intermediary between the
electrical outlet and the device, converting the alternating current (AC) from the outlet into
the required 5V DC power, which is commonly used to charge or power USB devices like
smartphones, tablets, and various other gadgets. These adapters come in various shapes,
sizes, and connector types, making them versatile for powering a wide range of consumer
electronics.

F IGURE 12: A DOPTER (DC 5V)


Chapter - 4

Algorithm
2.1.2. Arduino Nano Flow chart
ESP32 MCU Flow Chart
Chapter - 5

Implementation
3.

Prototype mode of the system

3.1.1. ESP32 Complete


The need for real-time monitoring of local weather conditions, accessible from
anywhere in the world, has become increasingly crucial in our interconnected global
society. This demand is driven by a variety of factors, including the growing importance
of weather information for daily life, agriculture, aviation, and climate research. Such real-
time monitoring allows individuals, businesses, and governments to make informed
decisions and take appropriate actions based on current weather conditions.
Moreover, there is a growing emphasis on the long-term collection and storage of
weather and environmental data for the purpose of studying weather patterns and
understanding the impact of human-induced climate change on local weather. Climate
scientists and researchers rely on comprehensive datasets to analyze trends, model future
scenarios, and formulate strategies to mitigate the effects of climate change.
The advancement of technology has made it easier to deploy monitoring systems
for local atmospheric conditions and microclimates. These systems are instrumental in
improving weather forecasting and prediction accuracy. By collecting data from various
sensors placed strategically in different geographical areas, meteorologists can gain a more
holistic view of regional weather patterns, which contributes to more precise forecasts and
early warning systems for severe weather events.
For farmers, access to accurate and timely weather data is vital for optimizing crop
production. Temperature sensors, humidity sensors, soil moisture sensors, and rain sensors
are key tools in their toolkit. These sensors provide valuable insights into soil conditions
and precipitation levels, enabling farmers to make informed decisions about planting,
irrigation, and harvesting. This data-driven approach helps enhance crop yields, reduce
resource wastage, and increase overall agricultural efficiency.
In the aviation industry, safety is paramount. Pilots must have access to critical
weather information before taking off to ensure the safety of passengers and crew.
Atmospheric pressure, precipitation, visibility, and other meteorological factors are
monitored using specialized sensors like barometric sensors and rain sensors. These
sensors contribute to the safe operation of aircraft by helping pilots navigate through
various weather conditions and make informed decisions regarding flight paths and
altitudes.
Chapter - 6

Conclusion and Future


Scope
4.

Conclusion
The establishment of a continuous weather monitoring station within the natural
environment serves as a form of proactive environmental protection, essentially giving rise
to what can be described as a "smart environment." This endeavor entails the strategic
deployment of sensor devices throughout the environment, enabling the collection and
analysis of critical data. This innovative approach effectively bridges the natural world
with the digital realm, facilitating real-time data access for users through Wi-Fi
connectivity. The paper introduces a highly efficient and cost-effective embedded system
tailored for intelligent environmental monitoring. Moreover, it streamlines the
transmission of sensor parameters to cloud storage, ensuring data availability for future
analysis and sharing with a broader audience. Significantly, the model's adaptability
extends to monitoring burgeoning urban areas and industrial zones for comprehensive
pollution tracking, offering an economical and efficient solution for ongoing
environmental monitoring aimed at safeguarding public health from pollution-related
hazards.

Future Scope
The future presents a plethora of exciting prospects for expanding and enriching
this system. One promising avenue involves the incorporation of additional sensors and the
establishment of satellite connectivity, thereby elevating it to a global environmental
monitoring platform. This expansion can encompass the monitoring of a wider array of
environmental parameters, including but not limited to CO2 levels, atmospheric pressure,
and oxygen concentrations. Furthermore, the system holds immense potential in sectors
such as aviation, navigation, and military operations, where real-time data holds paramount
significance. Additionally, its application can extend to hospitals and medical research
institutions, facilitating studies focused on the "Effect of Weather on Health and Diseases."
This would enable the implementation of more effective precautionary measures and
timely health alerts, contributing to enhanced public well-being.
References
[1]. Mary Nsabagwaa, Maximus Byamukamab, Emmanuel Kondelaa, “Towards a robust and
affordable Automatic Weather Station “, journal homepage:
www.elsevier.com/locate/deveng.
[2]. Ravi Kishore Kodali and Snehashish Mandal “IoT Based Weather Station” 2016
International Conference on Control, Instrumentation, Communication and Computational
Technologies (ICCICCT) 978-1-5090- 5240-0/16/$31.00, IEEE, (2016).
[3]. Ravi Kishore Kodali and Archana Sahu “An IoT based Weather Information Prototype
Using WeMos” 2016 2nd International Conference on Contemporary Computing and
Informatics (ic3i), 978-1-5090-5256- 1/16/$31.00, IEEE, (2016)
[4]. Zi-Qi Huang, Ying-Chih Chen and Chih-Yu Wen, “Real-Time Weather Monitoring and
Prediction Using City Buses and Machine Learning”, Vols. 3 to 21 Published 10 September
(2020)
[5]. Kavya Ladi, A V S N Manoj, G V N Deepak, “IOT Based Weather Reporting System to
Find Dynamic Climatic Parameters”, International Conference on Energy, Communication,
Data Analytics and Soft Computing (ICECDS-2017)
[6]. P. Susmitha, G. Sowmyabala “Design and Implementation of Weather Monitoring and
Controlling System”, International Journal of Computer Applications (0975 – 8887) Volume
97– No.3, (July 2014)
[7]. Tanmay Parashar1, Shobhit Gahlot2, Akash Godbole3, Y.B. Thakare4 “Weather
Monitoring System Using Wi-Fi”, (IJSR) ISSN (Online): 2319-7064 Index Copernicus Value
(2015): 78.96, 2015
[8]. Nutant Sabharwal, Rajesh Kumar, Abhishek Thakur, Jitender Sharma “A LOW-COST
ZIGBEE BASED AUTOMATIC WIRELESS WEATHER STATION WITH GUI AND
WEB HOSTING FACILITY” e-ISSN: 1694-2310 | p-ISSN: 1694-2426, Vol. 1, Spl. Issue 2
(May 2014)
[9]. M. Prasanna, M. Iyapparaja, M. Vinothkumar, B Ramamurthy, S.S. Manivannan,” An
Intelligent Weather Monitoring System using Internet of Things”, International Journal of
Recent Technology and Engineering (IJRTE) ISSN: 2277-3878, Volume-8 Issue4, November
(2019)
[10]. Mircea Popa and Catalin Iapa “Embedded Weather Station with Remote Wireless
Control”, 19th Telecommunications forum TELFOR 2011 Serbia, Belgrade, November 22-
24, 2011, 978-1-4577-1500- 6/11/$26.00, IEEE, 2011
[11].A Study on IoT Approach for Monitoring Water Quality Using MQTT Algorithm,
Alfiya Abubaker1, Kavya C R2, Tilju Thomas3, Nikhil Joseph4, Shifana Begum5, 1,2,3,4
Final Year UG Students, Dept. of CSE, Srinivas School Of Engineering, Mangalore
[12]. IoT Based Water Quality Monitoring System, Mourvika Shirode, Monika Adaling, Jyoti
Biradar, Trupti Mate, Department of Electronics & Telecommunication Keystone School of
Engineering, Pune, Maharashtra, India
[13]. https://internetofthingsagenda.techtarget.com/definition/I nternet-of-Things-IoT
[14]. Girija C Department of Electronics and Communication, NIEIT, Andreanna Grace
ShiresDepartment of Electronics and Communication, NIEIT, Mysuru Internet of Things
(IoT) based Weather, International Journal of Engineering Research & Technology (IJERT)
[15]. Mobile APP & IoT Based Station Weather Station. AUTHOR: K. N. V.
SATYANARAYANA, S. R. N. REDDY, K. N. V. SURESH VARMA & P. KANAKA
RAJU
[16]. Arduino Based Weather Monitoring System. AUTHOR: Karthik Krishnamurthi, Suraj
Thapa, Lokesh Kothari, Arun Prakash
[17]. Internet of Things (IoT) Based Weather Monitoring system, Bulipe Srinivas Rao1, Prof.
Dr K. Srinivasa Rao2, Mr N. Ome3, international Journal of Advanced Research in Computer
and Communication Engineering, ISO 3297:2007 Certified, Vol. 5, Issue 9, September 2016
[18]. https://how2electronics.com

You might also like