Analysing Humidity and Temperature Using IoT
Analysing Humidity and Temperature Using IoT
U
sing the Internet of Things in the world. The IoT using Arduino MCU and ESP8266 Wi-Fi module.
(IoT) in homes and indus- microcontroller (MCU) is easy and Block diagram of the whole setup is
tries it is possible to control fun for those who are new to the shown in Fig. 1.
any electrical or electronic equip- field.
ment. Moreover, you can get the In this article, humidity and Circuit and working
information from any sensor and temperature information from DHT- Circuit diagram for monitoring
analyse it graphically or in any 11 sensor is analysed graphically on humidity and temperature is shown
user-defined format from anywhere ThingSpeak platform using Arduino in Fig. 2. It is built around Arduino
MCU, DHT11 sensor and ESP8266
Power Supply Wi-Fi module.
The DHT11 sensor senses hu-
midity and temperature, and sends
DHT-11 Arduino UNO ESP8266
Sensor Microcontroller Wi-Fi Module the information to digital pin 5 of
Arduino MCU, as shown in Fig. 2.
From Arduino MCU, humidity and
temperature values are uploaded
to the Cloud at regular intervals
of time through ESP8266 Wi-Fi
module. From the Cloud, humidity
and temperature values can be seen
graphically on ThingSpeak platform
(http://thingspeak.com) from any-
Fig. 1: Block diagram of analysing humidity and temperature using Arduino with ESP8266 where in the world.
3.3V 12
1 8 5V 11
VCC DATA NC GND perature as another, as shown
UTXD GND 1 2 3 4
7
GND
GND
10
9
in Fig. 3. Once a new channel
2 CH_PD GPIO2
Vin 8 is created, it will generate two
IC2
ATMEGA328
3 GPIO0 6
RST API keys, namely, write API key
ESP8266
4
VCC URXD
5 7
6
and read API key. Replace the
DIGITAL
A2 3
A3
A4
2
TX 1
Test Points
A5 RX 0
Test point Details
TP0 0V (GND)
TP1 5V
Fig. 2: Circuit diagram for analysing humidity and temperature using Arduino with ESP8266 TP2 3.3V
Other applications
Along with temperature and hu-
midity sensor, other sensors like
gas, voltage, current and energy
can be used based on the require-
ment. Moreover, it is also possible
to take further actions by control-
ling the actuators from the Inter-
net once the sensor values are
Fig. 5: Channel Settings going above/below predetermined
values.
with your write API key:
String apiKey = “ NTIM1RXET6YVUVWF “;
D. Citharthan (left) is assistant professor
Next, substitute Host_Name at Christ The King Engineering College,
and Password with your Wi-Fi Coimbatore, Tamil Nadu
name and Wi-Fi password in T. Jonah Gilbert
the two lines given below in (right) is pursuing
B.E. from Christ The
the program (IoT.ino): King Engineering
String Host_Name = “Jonah”; College, Coimbatore,
Tamil Nadu
Fig. 6: Author’s prototype String Password = “2569696”;