An IoT Based System For Advanced Weather Monitoring
An IoT Based System For Advanced Weather Monitoring
BACHELOR’S THESIS
——————————–
——————————–
June 2024
Acknowledgments
ii
Dedication
(In this section, you dedicate this thesis to important people for you. This should not also
exceed 1 page.)
iii
jÊÓ
áÒJË@ é¢ëAK. éK ñm.Ì '@ ¬ðQ¢ËAK. ñJ.JÊË éÓY jJÖÏ @ ®¢ËAK
ñJJË@ HA¢m
. . × àñºK AÓ èXA«)
ÕæÒ ñë ¨ðQåÖÏ @ áÓ úæJKQË@ ¬YêË@ .AêÊJª Ë á¯Qm× á®£ñÓ I.Ê¢JKð Ñj.mÌ '@ èQJ.»ð
éÓ@YjJ@ áºÖßð Ð@YjJB@ ÉîD ð ÈñÒm× ð é®Ê¾JË@ PñÓ ®¢Ë@ éJ ¯@ QÓ PAêk YJ®JKð
. .
ÉJÓ ®¢Ë@ QåAJ« ©J.JË éJ«AJË@ úÍ@ éJ«@P QË@ áÓ HA®JJ.¢JË@ áÓ é«ñJJÓ é«ñÒm.× ú¯
AêÊJñK ÕæK úæË@ H@ Ï @ áÓ YK YªË@ Ð@YjJAK , tÌ '@ ... éK ñ£QË@ð èP@QmÌ '@ ék
Qª Ö PX
. . .
èPñ»YÖÏ @ HA
KAJJ.Ë@ ÉJÒm' ð éJÒÖÏ @ QªË@ éA úΫ HA
KAJJ.Ë@ QªËð .ÕºjJË@ èYgñK.
I KQKB AK. éÊ
JÖÏ @ èQêk B@ áÓ é«ñÒm
.
× úΫ AîDQ« áºÖß IJ
. m'. ZAJ B@ I KQK@ é JÓ úÍ@
éJ ¯@ QÓ èQêk @ áÓ H Q®ËAK
. ®¢Ë@ . . . . AJʪ¯ àñºK à @ úÍ@ ék. AmÌ '@ ùªÊK úÍAJËAK. ð ,
(.
éJ ¯@ QÓ PAêk , áÒJË@ é¢ëAK , ®¢ËAK ñJJË@ HA¢m
, ®¢Ë@ . . . . . × ) : éJkAJ®ÖÏ @ HAÒʾË@
( . ZAJ B@ I KQK@ é
JÓ , Ð@YjJB@ ÉîD ð ÈñÒm× , é®Ê¾JË@ PñÓ
Abstract
iv
Résumé
v
Table of Contents
Acknowledgments ii
Dedication iii
Abstracts iv
Table of Contents vi
List of Figures ix
List of Tables x
List of Algorithms xi
General Introduction 1
vi
2 Analysis and Design 11
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Definition of UP (Unified Process) & UML (Unified Modeling Language . . 11
2.2.1 UP (Unified Process): . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.2 UML language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.3 UML Diagrams: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.4 Criteria for Choosing UML . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3 Capturing Functional Requirements . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.1 Actors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.2 Functional Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4 Context diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.1 Context diagram definition . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.2 Static context diagram definition . . . . . . . . . . . . . . . . . . . . . 14
2.4.3 Dynamic context diagram definition . . . . . . . . . . . . . . . . . . . 14
2.5 Use case diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.5.1 Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.6 Description sheet for use cases . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.7 Sequence diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.7.1 Sequence diagram definition . . . . . . . . . . . . . . . . . . . . . . . 19
2.8 Class diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.8.1 Class diagram definition . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.9 Relational logic model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.9.1 Relational logic model definition . . . . . . . . . . . . . . . . . . . . . 19
General Conclusion 22
vii
Bibliography 23
Acronyms 24
Bibliography 25
viii
List of Figures
2.1 Up Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Use Case Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
ix
List of Tables
x
List of Algorithms
xi
General Introduction
(The introduction, which must not exceed 3 pages, consists of the following four sections.)
Project Background
Weather and climate are among the foremost factors which determine how a society de-
velops in a geographical region. Weather describes a event for a short period of time
such as an hour or a day, and it includes current atmospheric conditions such as the tem-
perature, precipitation, humidity and the speed and direction of the wind. On the other
hand, climate refers to the behavior of the atmosphere on a place over the span of many
years. We are always with or around a weather forecast, on average we might encounter
four or five weather forecasts per day in the shape of: news bulletin, newspapers, social
media sites, and on tv [1,2]. Weather influences people’s lives, property, and activities,
it also plays a massive role in the world economy, especially in Africa. The reason for
the circumstance is that most African countries rely on agriculture as their main source
of income. As an example, agriculture represents between 30employs about 80droughts
and heatwaves) can affect farms in different ways, too much water can cause damage to a
farm. Floods can postpone the planting of crops along with oxygen depletion after they
are planted. Flooding enhances the possibility of disease and triggers nitrogen loss in
crops; Also, in the construction field the warping in lumber products and the speed at
which some components dry depend on the humidity levels in the air, transportation on
land, sea and air rely on the weather conditions to determine if traveling is safe or not.
This actively demonstrates that monitoring and forecasting weather is crucial. Weather
data is important and has a direct impact on our daily lives [4, 5]. The data collected such
as rainfall and temperature can be used to serve as a precautionary measure against nat-
ural disasters. A weather monitoring system is used to collect data such as temperature,
humidity, precipitation, and wind speed. It also can update data more frequently, as it can
1
be programmed to update its data readings on a minute or hourly bases. We interfaced
a variety of sensors ranging from a temperature sensor to a light sensitive sensor with a
microcontroller to view the real time weather conditions on a display screen and, be able
to connect to the internet and send the current weather conditions wirelessly to an IOT
platform and be able to view them without the need to be physically present in the same
place as the weather monitor hardware.
Problem
Professional weather stations are extremely expensive, lack portability and ease of use for
the everyday consumer. Also, most weather data found on the internet are an approxi-
mation, and some applications might require accurate readings which, in turn render the
data found on the internet useless for that specific application.
Proposed Solutions
In this work, we propose to design and implement an microcontroller based weather
monitoring system with the following objectives:
-Collect data from multiple sensors interfaced with the esp32 microcontroller.
-Display the data processed by the microcontroller on a liquid crystal display.
-Share the collected data to an IoT platform, allowing it to be viewed from any internet-
connected device, such as a phone or a PC.
Methodology
Determine the project objectives and figure out a mechanism to achieve them, study
previous researches related to weather monitoring to help with the writing of the literature
review, build a software simulation of the project to check that it is functional and then
build a hardware prototype using a variety of sensors and an ESP32 based microcontroller
that can connect to the internet to upload its collected data to be able to view this data on
a device that can connect to the internet such as a mobile phone or a personal computer.
Document Plan
This thesis is organized as follows: In the first chapter, we...
2
Chapter
1
State of the Art: Project
presentation and basic concepts
(Here, you present the state of the art that situates the contribution of your project through
the treated area. should not exceed 10 pages. Each chapter should be structured as
follows:)
1.1 Introduction
Climate change clearly affects agriculture, aviation, and disaster preparation to a sig-
nificant extent implying the necessity of monitoring systems. This paper considers the
state-of-the-art technology, customer requirements, and the various options available.
However, it illustrates the fact that the internet of things (IoT) will introduce a revolution-
ary change in weather monitoring, revealing how it can improve the present problems and
open up new possibilities for the future, for example, by providing dense sensor networks
and instant insights. This research paper is intended to lead readers into comprehending
the connection between weather monitoring and IoT.
3
▶ Denser sensor networks: IoT permits a wider set of sensing systems to deploy, thus
providing much detailed hyperlocal weather information. This refers to agriculture,
urban construction, and environment monitoring.
▶ Real-time monitoring: Data from the sensors can be instantly transferred and ana-
lyzed yielding an actionable process for moment-by-moment decision making. This
factor is critical for prevention, better aviation safety, and in-time weather alert.
▶ Remote data collection: Even in locations like the top of the mountain, or remote
fields, sensor data can be collected and relayed in real time using various IoT tech-
nologies. This allows for applications such as remote weather forecasting, environ-
mental control, and climate change study to flourish.
Strengths: Gives on-time and accurate data through a broad vast system. The appli-
cations of these technologies, in sectors such as agriculture and aviation, are numerous.
Limitations: Data availability itself requires subscriptions, particularly for those who
cannot afford them.This statistic can be dependent on location.
▶ Weather Buoys: These fixed devices that are permanently installed in the ocean
deeps or lakes gather information like the wind speed and height as well as atmo-
spheric pressure. They play a pivotal role in providing weather predictions for the
sea and also in observing the variety of ocean conditions.
Strengths: provides crucial data for marine weather forecasting and monitoring ocean
conditions.
4
Limitations: Only carrying out the analyses on the water areas, thus ignoring the on
the land effects of climate changes. Sustainment as well as shipment may end up costing
a lot.
▶ HOBO Weather Monitoring Stations: portable devices that can be used for data
collection and monitoring of the environment. These devices receive input from
sensors that gauge different variables such as temperature and humidity, which are
useful as scientific research tools and in meteorological applications.
Strengths: Tough and resilient stations are designed to withstand the worst conditions
and aid in retrieving factors such as temperature, humidity, wind speed, and air pressure.
Also, prominent in research activities and environmental surveillance.
Limitations: The high initial cost and expected complexity in setting up and the
managing the data gathering system. May not be the best option to use at home due to
the price and hardware demands.
Strengths: Provide a user-friendly control center that can handle any weather station,
together with other sensor types. Provides real-time accessibility, viewing, and analysis
of the data.
Limitations: Reliant on a stable internet connection for data relay and access. May
need to pay for a membership fee depending on the service tier you opted for.
▶ Weather Balloons:These high-altitude balloons are stuffed with equipment that are
used for purposes like measuring pressure of atmosphere, temperature, humidity,
and wind speed. They contribute to the weather models that predict upper air
conditions and create forecasting models.
Strengths: Collect important data in the upper air conditions and produce useful
information to model weather forecasting.
Limitations: Limited data acquisition time as a result of the process of launching the
balloon and its descent. Cannot be applied for real-time monitoring.
5
▶ Drones: Computer-controlled flying machines, with weather sensors on board,
are more and more used for professional monitoring purposes, such as capturing
weather data in defined areas, frontline event tracking, and post-weather disaster
assessments.
Strengths: Provide targeted weather data collection and support to specific locations
that may help in studying storm fronts or assessment of the post-disaster situation.
Limitations: Limitations of flight duration and flying range. The drones can be
regulated by the government and safety considerations could prohibit drone usage in
certain locations.
▶ Data Accuracy: Accuracy and reliability of data collection are still the biggest chal-
lenges for space agencies and it is more difficult in extreme weather conditions.
▶ Technical limitations: There may be some regions that have no advanced weather
monitoring equipment, and therefore such places cannot be covered comprehen-
sively.
▶ Data Integration: Combining data from different sources and guaranteeing smooth
interoperability is in fact difficult.
▶ Impact of Climate Change: Rapid changes in climate patterns pose challenges to
accurate prediction and monitoring of weather phenomena.
▶ Security: Data are vulnerable (over RF) and critical (e.g. smart-grid data) •
Data are private (e.g. biometrics, your location) • Computational complexity
is poor and conventional cryptography algorithms (@computer networks) will
not work • WSN nodes are remote and exposed in the environment – physical
tampering • intrusion detection/node compromise by an attacker, encryption, key
establishment and distribution, node authentication, and secrecy.
6
▶ Remote Sensing: By using satellites and remote sensing, a wider field of view and
more precise data can be achieved.
▶ IoT and Sensor Networks: The growing popularity of the IoT (Internet of Things)
and sensor networks will increase the amount of real-time data collection and trans-
fer.
▶ Public Awareness: Use technology as a tool to increase people’s awareness and
preparation for extreme weather disasters.
Coping with these challenges and taking advantage of the opportunities will result
in more accurate and reliable forecasts applicable to many areas including agriculture,
disaster management and climate research.
7
▶ Mark Weiser’s 1991 paper on ubiquitous computing and academic venues like Ubi-
Comp and PerCom produced the contemporary vision of the IoT.
▶ Reza Raji described the concept in 1994 as moving small packets of data to a large
set of nodes to integrate and automate everything from home appliances to entire
factories.
▶ Between 1993 and 1997, several companies proposed solutions like Microsoft’s at
Work or Novell’s NEST.
▶ Bill Joy envisioned device-to-device communication as part of his "Six Webs" frame-
work in 1999.
▶ The term "Internet of Things" was first used in a speech by Peter T. Lewis in 1985.
▶ Kevin Ashton of Procter & Gamble coined the term in 1999, focusing on the integra-
tion of people, processes, and technology with connectable devices and sensors.
▶ In 2004 Cornelius "Pete" Peterson, CEO of NetSilicon, predicted that, "The next era of
information technology will be dominated by [IoT] devices, and networked devices
will ultimately gain in popularity and significance to the extent that they will far
exceed the number of networked computers and workstations."
▶ Defining the Internet of things as "simply the point in time when more ’things or
objects’ were connected to the Internet than people", Cisco Systems estimated that
the IoT was "born" between 2008 and 2009, with the things/people ratio growing
from 0.08 in 2003 to 1.84 in 2010.
It is obvious that the IoT system’s infrastructure will be based on sensors. These amazing
microsensors basically range from various categories and each of which are designed to
measure only one element.Common examples include:
▶ Environmental Sensors: They do temperature, humidity, pressure, photo intensity
and air quality measurements, giving necessary information for agriculture and
smart buildings in case of environmental monitoring also.
8
▶ Industrial Sensors: Factories and production lines are very much equipped with
sensors that monitor vibration, pressure, flow rate, electrical consumption and every
other mechanical input. This enables predictive maintenance and process optimiza-
tion which are found to be very cost efficient.
▶ Wearable Sensors: Some fitness trackers and smartwatches incorporate sensors to
measure pulse rate, activity levels, and sleeping periods that encourage disease and
normal lifestyle management.
Efficient transmission of data is one of the important aspects of the IoT devices which are
often deployed in various locations:
▶ Cellular Networks: Provide reliable long-range data transmission for devices in-
stalled in urban or well-connected areas.
▶ Low-Power Wide Area Networks (LPWAN):Technologies such as LoRaWAN and
Sigfox provide long-range and low-power communication, which is perfect for
battery-operated devices that are located in places far away from the power source.
▶ Bluetooth and Wi-Fi: They are the quick-range solution for communication between
devices within a limited physical space like in a smart home or office environment.
The huge amount of data garnered by IoT sensors calls for a strong infrastructure for
storage and analysis. Cloud platforms play an important role in this process:
▶ Data Storage: Scalable, secure cloud storage holds vast datasets of data collected
from different IOT devices.
▶ Data Visualization: User-friendly interfaces allow visualization of the data in real-
time that in turn make it easy for users to ascertain the trends and patterns.
▶ Data Analytics: Cloud platforms can provide powerful analytics tools including:
■ Machine Learning: Algorithms trained using historic data can detect relations
and patterns, and thus used for predictive maintenance, optimized resources
management and better decision making.
■ Big Data Analytics: There are methods for processing large datasets that can
reveal hidden insights as a result of which processes can be tuned as well as
innovations may emerge across industries.
Through the utilization of these tools and technologies IoT forms an active data environ-
ment in which data collection and analysis is possible. And it asks companies and people
9
to pick up profitable practices from physical world that help enhance productivity, make
informed decisions and get aware of the intricacies of our interconnected planet.
Conclusion
In summary, the integration of weather monitoring and Internet of Things (IoT) tech-
nology represents a groundbreaking shift in our capacity to understand and address
climate-related challenges. The IoT enables us to rectify the shortcomings of previous
methods, leading to increased accuracy and efficiency in monitoring weather patterns.
Although there may still be some obstacles to overcome, the widespread recognition and
utilization of this technology suggest that the future of weather monitoring is dynamic
and progressive.
Furthermore, the IoT not only facilitates improved forecasting capabilities but also
enhances our preparedness for climate change impacts across various sectors such as
agriculture, aviation, and disaster management. This transformative process brings the
global community closer together and equips us with greater flexibility in responding to
the effects of climate change..
10
Chapter
2
Analysis and Design
2.1 Introduction
The development of a website must be preceded by a comprehensive analysis and design
methodology. This methodology aims to formalize the preliminary stages of website
development, ensuring that the final product aligns closely with the client’s needs. To
effectively manage the development and implementation of our website, it is crucial to
follow and adhere to the proper sequence of steps, which is facilitated by a structured
development process. For our project, we have chosen to use the Unified Process (UP)
and the Unified Modeling Language (UML) for modeling.
Importance of UP
▶ Complex software projects are made more manageable by Unified Process. It breaks
them into smaller, iterative chunks.
11
Figure 2.1: Up Process.
12
Class Diagram: Arguably one of the most important diagrams in object-oriented
development. On the functional branch, this diagram is intended to develop the structure
of entities manipulated by the users. [1]
2.3.1 Actors
▶ User
▶ Admin.
▶ Sensors.
13
2.4 Context diagram
2.5.1 Definition
The roles of use case diagrams are to gather, analyze, and organize requirements, as well
as to identify the major functionalities of a system. Therefore, it represents the first UML
step in the design of a system. The use case diagram consists of three main elements:
▶ Actor: This is the idealization of a role played by an external person, process, or
thing that interacts with a system. It is represented by a small stick figure with its
name written below.
▶ Use Case: This is a coherent unit representing a visible functionality from the
outside. It performs an end-to-end service, with a trigger, a course of action, and an
end, for the actor who initiates it.
▶ Relationships: Three types of relationships are supported by the UML standard and
are graphically represented by specific types of these relationships. The relationships
indicate that the source use case has the same execution conditions as the resulting
case. A simple relationship between an actor and a use case is depicted by a simple
line.
14
Figure 2.2: Use Case Diagram.
15
2.6 Description sheet for use cases
16
Visualize real-time data
Name Visualize real-time weather data.
Actor User
Objective TThe user wants to visualize the weather data.
Precondition Weather data has been collected
1. The user navigates to the real-time data visual-
ization section.
2. The system retrieves the latest data from the
ideal Scenario cloud.
3. The system displays real-time weather data in
the user interface.
17
Authentification
Name Authentification
Actor User, Admin
Objective The user wants to access the system.
Precondition User has a registered account to access the system.
1. User provides credentials (username/pass-
word).
ideal Scenario 2. System validates the credentials.
3. User gains access to the system.
18
Manage Sensors
Name NNNN
Actor NNNN
Objective NNNN
Precondition NNNN
ideal Scenario NNNN
Alternative Sce-
NNNN
nario
post-condition NNNN
Emergency Alerts
Name NNNN
Actor NNNN
Objective NNNN
Precondition NNNN
ideal Scenario NNNN
Alternative Sce-
NNNN
nario
post-condition NNNN
Conclusion
19
Chapter
3
Implementation & Experiments
(This part presente all the results obtained, analyzed and discussed. This part should not
exceed 10 pages. The general structure is as follows:)
Introduction
20
3.3 System architecture
Conclusion
21
General Conclusion
(Consisting of 2 pages maximum, this part is reserved for conclusion and perspectives.
In the conclusion, you provide a summary of your contributions, providing an answer to
the addressed problem and specifying the context of project applicability. In addition,
the limits and perspectives of the project are also discussed, by listing the works to be
considered in the future.)
Synthesis
Perspectives
22
Bibliography
[1]
[2] G. Booch, J. Rumbaugh, and I. Jacobson. The Unified Modeling Language User Guide.
Addison-Wesley, 2nd edition, 2005.
23
Acronyms
(You can list the acronyms used in the document, for example:)
24
Bibliography
[1]
[2] G. Booch, J. Rumbaugh, and I. Jacobson. The Unified Modeling Language User Guide.
Addison-Wesley, 2nd edition, 2005.
25