Weather Monitoring System
Weather Monitoring System
Weather Monitoring System
USING IOT
Submitted by
J. JESWIN RHYMOND (211421104113)
S. JIRILIN BABU (211421104114)
BACHELOR OF ENGINEERING
IN
OCTOBER 2023
REAL - TIME WEATHER MONITORING SYSTEM
USING IOT
Submitted by
J. JESWIN RHYMOND (211421104113)
S. JIRILIN BABU (211421104114)
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
OCTOBER 2023
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
Certified that the above candidate(s) were examined in the Anna University Project Viva-Voce
Examination held on ...........................
(211421104114) hereby declare that this project report titled “REAL - TIME
we have not plagiarized or submitted to any other degree in any university by us.
ACKNOWLEDGEMENT
We would like to express our deep gratitude to our respected Secretary and
Correspondent Dr. P. CHINNADURAI, M.A., Ph.D for his kind words and
enthusiastic motivation, which inspired us a lot in completing this project.
We also express our gratitude to our Principal Dr. K. Mani, M.E., Ph.D who
facilitated us in completing the project.
We thank the Head of the CSE Department, Dr. L. JABASHEELA, M.E., Ph.D
for the support extended throughout the project.
We would like to thank our Project Guide V. ANITHA MOSES M.E., and all the
faculty members of the Department of CSE for their advice and encouragement for
the successful completion of the project.
J. JESWIN RHYMOND
S. JIRILIN BABU
ABSTRACT
ABSTRACT iii
LIST OF TABLES iv
LIST OF FIGURES v
LIST OF ABBREVIATIONS vi
1. INTRODUCTION 1
2. LITERATURE SURVEY 4
3. SYSTEM ANALYSIS 9
4. SYSTEM DESIGN 12
5. SYSTEM ARCHITECTURE 15
6. SYSTEM IMPLEMENTATION 25
6.1 Coding 25
7. PERFORMANCE ANALYSIS 29
CHAPTER NO. TITLE PAGE NO.
7.1 Result 30
8. CONCLUSION 32
A APPENDICES 33
REFERENCES 36
LIST OF FIGURES
1
1. INTRODUCTION
2
data on a web server. The end device, router, gateway node, and management
monitoring center make up the wireless sensor network management model. After
extracting the data from the wireless sensor network and packing them into
Ethernet format, the gateway node transfers them to the server to any machine that
executes server software, to put it less formally.
3
CHAPTER 2
LITERATURE SURVEY
4
2. LITERATURE SURVEY
5
getting more straightforward as well as accurate data, give them instructions or
access the output. [2]
6
threshold value ranges, for example CO levels in air in a particular area exceeding
the normal levels etc., in the environment using wireless embedded computing
system is proposed in this project. The solution also provides an intelligent remote
monitoring for a particular area of interest. In this project we also present a
trending results of collected or sensed data with respect to the normal or specified
ranges of particular parameters. The embedded system is an integration of sensor
devices, wireless communication which enables the user to remotely access the
various parameters and store the data in cloud. [5]
7
CHAPTER 3
SYSTEM ANALYSIS
8
3. SYSTEM ANALYSIS
9
contributing to better resource management, safety, and sustainability across
various domains.
10
CHAPTER 4
SYSTEM DESIGN
11
4. SYSTEM DESIGN
12
4.2. DATA FLOW DIAGRAM
13
CHAPTER 5
SYSTEM ARCHITECTURE
14
5. SYSTEM ARCHITECTURE
15
5.2. MODULE DESIGN SPECIFICATION
16
module is already pre-programmed with an AT command set firmware, so all
you have to do is connect it to your Arduino project to receive nearly the same
amount of Wi-Fi functionality as a Wi-Fi Shield. The ESP8266 module is a
very affordable board with a sizable, constantly expanding community.
17
Pin Configurations
18
Some features of ESP8266
Low cost, compact and powerful Wi-Fi Module
Power Supply: +3.3V only
Current Consumption: 100mA
I/O Voltage: 3.6V (max)
I/O source current: 12mA (max)
Built-in low power 32-bit MCU @ 80MHz
512kB Flash Memory
Can be used as Station or Access Point or both combined0
Supports Deep sleep (<10uA)
Supports serial communication hence compatible with many development
platform like Arduino
Can be programmed using Arduino IDE or AT - commands or Lua Script
19
Pin Configuration of DHT11
1. Vcc Power supply 3.5V to 5.5V
2. Data Outputs both Temperature
and Humidity through serial
data
3. NC No connection and hence not
used
4. Ground Connected to the ground of
the circuit
DHT11 Specifications
Operating Voltage: 3.5V to 5.5V
Operating current: 0.3mA (measuring) 60uA (standby)
Output: Serial data
Temperature Range: 0°C to 50°C
Humidity Range: 20% to 90%
Resolution: Temperature and Humidity both are 16-bit
Accuracy: ±1°C and ±1%
20
5.2.3 Fig: BMP 180 Sensor
Pin Configurations
Pin Name Description
VCC Connected to +5 V
GND Connected to ground
SDA Serial Data Pin (12C interface)
SCL Serial Clock pin (12C interface)
3.3 V If +5 V is not present. Can connect to
power module by +3.3 V to this pin.
21
5.2.4. Rain Sensor
One type of switching device used to detect rainfall is a rain sensor. The
functioning mechanism of this sensor is similar to that of a switch; if it rains, the
switch is typically closed.
22
5.2.4 Fig: Rain Sensor
Pin Configuration
Pin Description
Pin 1 (VCC) It is a 5V DC pin
Pin 2 (GND) It is a GND (ground) pin
Pin 3 (DO) It is a low / high output pin
Pin 4 (AO) It is an analog output pin
23
CHAPTER 6
SYSTEM
IMPLEMENTATION
24
6. SYSTEM IMPLEMENTATION
6.1. CODING
#include <SFE_BMP180.h>
#include <Wire.h>
#include <ESP8266WiFi.h>
#include "DHT.h"
void setup() {
Serial.begin(115200);
delay(10);
bmp.begin();
Wire.begin();
dht.begin();
WiFi.begin(ssid, pass);
25
void loop() {
//BMP180 sensor
status = bmp.startTemperature();
if (status != 0) {
delay(status);
status = bmp.getTemperature(T);
status = bmp.startPressure(3);// 0 to 3
if (status != 0) {
delay(status);
status = bmp.getPressure(P, T);
if (status != 0) {
}
}
}
//DHT11 sensor
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
//Rain sensor
int r = analogRead(A0);
r = map(r, 0, 1024, 0, 100);
if (client.connect(server, 80)) {
String postStr = apiKey;
postStr += "&field1=";
postStr += String(t);
postStr += "&field2=";
26
postStr += String(h);
postStr += "&field3=";
postStr += String(P, 2);
postStr += "&field4=";
postStr += String(r);
postStr += "\r\n\r\n\r\n\r\n";
Serial.print("Temperature: ");
Serial.println(t);
Serial.print("Humidity: ");
Serial.println(h);
Serial.print("absolute pressure: ");
Serial.print(P, 2);
Serial.println("mb");
Serial.print("Rain");
Serial.println(r);
}
client.stop();
delay(1000);
}
27
CHAPTER 7
PERFORMANCE
ANALYSIS
28
7. PERFORMANCE ANALYSIS
The project proposes an advanced solution for weather monitoring that uses
IoT to make its real-time data easily accessible over a very wide range. The
system deals with monitoring weather and climate changes like temperature,
humidity, wind speed, moisture, light intensity, UV radiation, and even carbon
monoxide levels in the air using multiple sensors. These sensors send the data
to the web page and the sensor data is plotted as graphical statistics. The data
uploaded to the web page can easily be accessible from anywhere in the world.
The data gathered in these web pages can also be used for future references.
The project even consists of an app that sends notifications as an effective alert
system to warn people about sudden and drastic weather changes. For
predicting more complex weather forecasts that can’t be done by sensors alone,
they use an API that analyses the data collected by the sensors and predicts an
accurate outcome. This API can be used to access the data anywhere and at any
time with relative ease and can also be used to store data for future use. Due to
the compact design and fewer moving parts, this design requires less
maintenance. The components in this project don’t consume much power and
can even be powered by solar panels. Compared to other devices that are
available in the market, this smart weather monitoring system is cheaper and
cost-effective.
29
7.1. RESULT
30
CHAPTER 8
CONCLUSION
31
8. CONCLUSION
As a global feature of this system, one can add a few additional sensors and
link it to the satellite. Adding additional sensors to track oxygen, and other
environmental variables can also be enhanced. This real-time system has a wide
range of applications in the aviation, navigation, and military industries. It can be
used in hospitals or other medical facilities to conduct research and study on the
"Effect of Weather on Health and Diseases" and afterwards improve warnings
for precautions.
32
APPENDICES
33
A.1. SAMPLE SCREENS
34
A.1 Fig: Output of Weather Monitoring System
35
REFERENCES
[1]. 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]. Mobile APP & IoT Based Station Weather Station. AUTHOR: K. N. V.
SATYANARAYANA, S. R. N. REDDY, K. N. V. SURESH VARMA & P.
KANAKA RAJU.
36