Paper 66-IoT Based Temperature and Humidity Controlling
Paper 66-IoT Based Temperature and Humidity Controlling
Abstract—Internet of Things (IoT) plays a pivotal part in our All these devices that enable them to upload input as well
mundane daily life by controlling electronic devices using as output to the Internet using cloud provisioning. The
networks. The controlling is done by minutely observing the information thus garnered is accessible for monitoring and
important parameters which generate vital pieces of information analysis anywhere in the globe via the internet [3]. In order to
concerning the functioning of these electronic devices. cut down on human effort and involvement, of late people
Simultaneously, this information will transmit these vital increasingly depend on embedded systems to control and
statistics from the transmitting device as well as save the same on monitor the factors affecting the ecosystem. Temperature and
the cloud to access by the applications and supplementary humidity are vital in observing and understanding nature. IoT
procedures to use them. This scrutiny associates the outcomes of
comes into the picture here by significantly enhancing the
the environmental observances like the humidity and
temperature measurements using sensors. The gathered
efficiency of the mechanism and systematically cutting down
information could be profitably used to produce actions like on human involvement, and thereby overall expenditure [4].
distantly dominant cooling, heating devices, or long term Practically, every part of exercise contains controlled
statistics, which will be useful to control the same. The detected schedules of temperature as well as humidity. However, the
data are uploaded to the cloud storage through network and exact value of temperature with its significant feature in any
associate using android application. The system employs Arduino field is essential in monitoring [5]. Constant perception in
UNO with Raspberry Pi, HTU 211D sensor device, and an
temperature is utilized in various industries like the
ESP8266 Wi-Fi module. The experimental results show the live
pharmaceutical industry as the driving force behind these
temperature and humidity of the surroundings and the soil
moisture of any plant using Arduino UNO with Raspberry Pi. monitoring systems, computerized and straightforward
Raspberry Pi is mainly used here for checking the temperature temperature sensors can use [6]. Resistors, semiconductors,
and humidity through the HTU 211D sensor element. The thermistors estimate temperatures values. These components
sensors are used for measuring the temperatures from the are present inside the sensor to retrieve the temperature in
surroundings, storing displayed information with different consonance with the circumstances. The primary goal of our
devices. Here, the ESP8266 Wi-Fi module has been used for data system is to supervise the live temperature and humidity within
storing purpose. a low cost [7].
Keywords—IoT; Raspberry Pi; Arduino UNO; data Raspberry Pi is the observational system or controller
transmission; sensors which is used for the cloud saving. Python is the programming
language which is utilized in Raspberry Pi. HTU 211D sensors
I. INTRODUCTION is a temperature sensor which is used here for the sensing
purpose [8]. This comprises of temperature ascertaining
IoT is used for connecting the electronic devices with the
capacity and favorable fundamental position of utilizing HTU
internet. The devices may vary from the temperature measuring
211D sensors, which boasts of less weight and ease of use. The
equipment and vehicles SOS system to other electronic devices
sensor is associated with Raspberry Pi utilizing connecting
such as sensors, software‟s, and network connectivity facilities,
wires. Temperature sensor HTU 211D sensors is utilizing is
which sanction collecting and exchanging data. The twenty-
perused put away, and shown in the Raspberry Pi unit [9].
first century has witnessed a massive paradigm shift to and
focusing on global attention onto IoT as a burgeoning IoT based devices in homes and industries are used for
discipline with multiple possibilities and diverse opportunities controlling all the electrical or electronic devices which are
for growth and development [1]. Internet connection facilitates present. Additionally, the saved information of the IoT devices
the smooth functioning of the devices that have become can be controlled from anywhere [10]. The sensor analyzes the
indispensable parts of our day-to-day lives and existence. The graphical representation of the observed data in every user-
Internet offers the provision to link and network different kinds defined format wherever in the world. In this work, IoT based
of devices like sensors and fitness devices. In the changed Arduino with Raspberry Pi microcontroller is used. Humidity
scenario post the September 11, 2001 attack on the United and temperature monitoring using Arduino is an exciting and
States where surveillance has gained paramount importance in secure process. Furthermore, this flexible system obtains more
proposed model security and survival, the internet facilitates values in calculating the actuator from the data saved on the
wholesome and perfect monitoring systems using closed- internet [11]. For connecting the Arduino board with Raspberry
circuit cameras [2]. Pi, USB line serial interface is essential to connect with any
application [12].
494 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
495 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
Fig. 2 shows the solar panel power supply supplied to the mega 2560 Raspberry Pi microcontroller is the sole of this
whole system. During periods of rain, the battery saved data is arrangement, as well as the used power supply in this work, is
supplied. So, this will be beneficial for the farmers in the solar panel as a replacement for the regular home power
monitoring the agriculture area. Fig. 3 shows the circuit supply. Because the solar panel installation only required some
diagram for measuring the humidity and temperature of an amount; after the installation, there is no money spending
area. It shows the solar power supply of the system with an required. Next to the controlling process of such arrangement,
Arduino MCU with Raspberry Pi microcontroller, HTU 211D in addition to that, it can switch on and off the DC motor
sensor, and an ESP8266 Wi-Fi module. support on the soil water content level as well as the weather
season. Furthermore, the system is convenient for the weather
Temperature detector which is used here is a 4-pin low forecast.
price extremely reliable detector named HTU 211D
SENSORS. The first pin is connected with a Vcc node point. Then the collected data are transferred to the farmers live
Here, the utilized power supply is a solar panel. The second pin through the GSM to their cell phones. Based on the water level
is an information pin which will collect all the information measuring system, the collected data are sending to the
from outside and provides information to the microcontroller. farmer‟s cell phone continuously. They can switch on or off
The sensor pin configuration of HTU 211D sensor detectors is their motor based on the collected data from the water level
represented in Fig. 3. measuring system. This is beneficial for the farmers to control
the motors as well as can watch their plants from their house.
The temperature detector is very much useful for getting Moreover, this helps the plants from the overwatering. The
digital signal output. The HTU 211D SENSOR detector system is beneficial for water scarcity problems. The values are
includes a resistive wetness component and is connected to an uploaded within the stipulated time period through the ESP-
extraordinarily high-performing-8-bit-microcontroller. This 8266 Wi-Fi system. Then, from the Cloud, the humidity and
sensor provides the best worth output, fast response, low cost, temperature standards are measured using one ThingSpeak
and is interference-proof. Their temperatures vary from 00C- platform from anywhere.
550C, and the wetness value is among 20-90%.
Here, the used open data platform source is ThingSpeak
To transfer the readings of the device from HTU 211D software, which is free. Two-parameter tabs as humidity and
sensor to open the supply cloud ThingSpeak software, Arduino temperature are selected in Fig. 5. After the new channel log in
UNO with Raspberry Pi interfaces at the output with a LAN two API keys are generated. The original String API Key is
module named ESP-8266. In this module, ESP-8266 LAN “NTIM1RXET6YVUVWF”. Then replace the above line with
semiconductor device is connected with a full TCP/IP protocol the given program API key. Next, substitute the Host Name
stack. A voltage of 3.3V is ideal, which is then connected by and Password with Wi-Fi name and Wi-Fi password. The
Arduino UNO with Raspberry Pi on PC. The calculation is original String-Hostname is “Jonah” and the password is
performed using the AT command and wants the desired “2569696”.
sequence, to be used as a saver. The module will work on each
saver and server. It gets associated when connected to LAN
through the module so that it can transmit over the web.
During the testing of the ESP-8266 module, the module is
connected with the Arduino UNO Raspberry Pi. Then the
programmed Arduino UNO Raspberry Pi set up is connected
with the ThingSpeak platform through the ESP8266 LAN
module. ESP8266 LAN module acts as a protocol shopper, and Fig. 2. Solar Panel.
it will send the knowledge to ThingSpeak server. ThingSpeak
is the best IoT platform used for data collection and storage
purposes. Another unique feature of ThingSpeak is the data
analysis and comparison module. Comparison between two
different days can be accomplished using ThingSpeak
platform.
The HTU 211D sensors are used to senses the humidity and
temperature, and transfer the collected data through the 5th pin
of Arduino MCU connected Raspberry Pi, as shown in Fig. 4.
This set up can also control the DC fan, motor, and water
levels for supporting farmers. Then the measured values of
humidity and temperature values from the Arduino MCU are
uploaded to the Cloud.
Fig. 4 is the overall hardware setup of the proposed system.
This arrangement the Arduino mega 2560 Raspberry Pi
microcontroller is worn to design for calculating the
temperature, water level, and the humidity levels of the
primary agricultural areas also help the farmers. The Arduino Fig. 3. Adafruit HTU 211D Sensors.
496 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
Fig. 6 shows the overall setup with all sensors and cloud. polls the device to retrieve information and sends over the web
The figure clearly shows the cloud, humidity, and temperature to ThingSpeak.
measurement systems. The program should be verified with the
Wi-Fi setup. To import the DHT library in Arduino Integrated To begin with, Raspberry Pi should be ready, and for that,
Development Environment (IDE), select the input sketch from need NOOBS. It is a software-based system manager that
the selected input folder. Then click „import‟ to retrieve the simplifies transfer, install, and then acquired wind of Raspberry
data from the library. To save cloud in the library, click „add Pi. Boot the NOOBS system once in the beginning; then get a
library‟; then select the library that has downloaded. Compile variety of operating systems (OS) to decide on from the
the sketch/program and upload to Arduino MCU through system. NOOBS makes obtaining started with Pi simple and
Arduino IDE. For these steps, better internet connectivity is includes a bunch of in OS to decide. The Raspberry Pi itself
indispensable, and hence, it should ensure beforehand. does not go together with the software system. Raspbian is the
“official” software system of the Raspberry Pi. Raspbian has
The central unit may be a microcontroller (Arduino UNO) been the quality Raspberry Pi in OS like UNIX.
and acts as the central processor unit for the complete system.
This unit interfaces with the device chip as the input for Since the system includes temperature and humidity
receiving temperature and humidness readings. For output, it watching, one device interface is required and no native storage
interfaces with the Wi-Fi module to send the received of information. Designate Arduino UNO with Raspberry Pi
information to the cloud over the web. The microcontroller microcontroller that serves the purpose well because of its
simplicity, lustiness, and low value. Fig. 6 shows an image of
497 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
Arduino UNO with Raspberry Pi microcontroller utilized in the IV. RESULTS AND DISCUSSION
proposed system. This microcontroller board is predicated on IoT based temperature and humidity measurement system
the ATmega328P. The controller has a USB port, 14 digital provides an economical and safe system. This is very useful for
input/output pins, 6 analog input pins, 16 megacycle quartz the detection of agricultural-related parameters. The results of
with a power jack, and a button. It is battery-powered with a the temperature and humidness will see on the Raspbian OS
battery. It is programmable with the Arduino IDE via a sort B terminal. The central hardware element of the proposed system
USB cable. is the microcontroller that interfaces with alternative elements
The all humidity and temperature values will be uploaded of the system. Since the system includes temperature and
on the ThingSpeak platform. After that, one can see its humidity controlling that one device interface is required and
graphical representation of both humidity and temperature no primary storage of information. This designated an Arduino
values in a separate view window, as shown in Fig. 7. If one UNO with Raspberry Pi microcontroller.
wishes to change the channel or field name, one can change it In this regards, the Arduino mega 2560 Raspberry Pi
from the channel settings. Finally, the collected data are microcontroller‟s controlling the temperature, water level, and
transferred to the farmers time to time with the GSM to their the humidity levels measurement plots are plotted. The
cell phones. This is beneficial for the farmers to control the Arduino mega 2560 Raspberry Pi microcontroller used the
motors as well as can watch their plants from their house. The solar panel instead of the proposed electric supply. The
proposed hardware prototype is shown in Fig. 17. comparisons between the supply usage and their advantages
are studied. Moreover, the graphs of the controlling process
system, switch on and off the DC motor based on the soil water
content level and the weathers forecasting are plotted. Water
supply content levels, as well as the rainy season are drawn in
the ThingSpeak software.
Fig. 8 shows the water level checking setup. In this setup,
the sensor first senses the water level. Then data is then
transferred to the farmers live through the GSM to their cell
phones. This is beneficial for the farmers to control the motors
as well as can watch their plants from their houses.
Fig. 9 shows the comparison between the solar panel
powers to standard power. In this work, instead of the standard
power supply, a solar panel supply is used. The ThingSpeak
software attains the generated power difference to standard
power.
Fig.10 graph shows the humidity results of the proposed
system. Humidity is the quantity of water vapor present in the
Fig. 6. Overall Set up with All Sensors and Cloud. air. The water vapor amount is essential to attain the saturation
state in proportion with the increase in temperature value. As
the temperature of a parcel of air is low, it will eventually reach
the saturation point without adding or losing the mass of water.
The quantity of water vapor enclosed in the air can vary
significantly.
Fig. 11 shows the comparison graph between the
temperature and humidity levels every two hours. This is
essential for the system. These comparisons are used for the
weather forecasting unit of the proposed model. The
temperature and humidity levels are proportional to each other.
498 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
499 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
Fig. 14. Graphical view of the Temperature Measurements Every Two Hours. Fig. 18. Constant Temperature Maintenance.
500 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
Blockchain IoT
Decentralized Centralized
Resource consuming Resource restricted
501 | P a g e
www.ijacsa.thesai.org
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 10, No. 9, 2019
In the future, the extensive Arduino system can put into [11] Jiansheng PENG W.L, Qiwen HE, Design of smart home system based
practice as agriculture automation system and weather-based on the wireless MCU CC2510, Journal of Hechi University, 10, 2008.
fertilizer flower and monitor the value of the plants' growth via [12] Patricio G, Gomes L, Smart house monitoring and actuating system
development using automatic code generation, Industrial Informatics,
the mobile application. IoT based systems are a vital step in 7th IEEE International Conference, 256-261, 2009, 23-26. Vinay Sagar
sympathetic, relevance growth, accomplishment, and serve as a K.N, Kusuma S.M, Home Automation using Internet of Things, IRJET,
construction block for a numeral of practical modernization 02,2015.
technique controller. [13] Girish Birajdar “Implementation of Embedded Web Server Based on
ARM11 and Linux using Raspberry PI” International Journal of Recent
ACKNOWLEDGMENT Technology and Engineering (IJRTE) ISSN: 2277-3878, Volume-3
Issue-3, July 2014.
The author thanks King Abdulaziz University for this work. [14] Roselle B. Anire et al., “Environmental Wireless Sensor Network using
REFERENCES Raspberry Pi 3 for Greenhouse Monitoring System”, IEEE 9th
[1] Bhargav Goradiya, and H. N. Pandya, “Real time Monitoring & Data International Conference on Humanoid, Nanotechnology, Information
logging Systemusing ARM architecture of Raspberry pi & Ardiuno Technology, Communication and Control, Environment and
UNO” International Journal of VLSI and Embedded Systems-IJVES. Management (HNICEM), 2017.
ISSN: 2249 – 6556. Vol 04, PP: 513-517, July 2013. [15] KonstantinosTzortzakis, et al., “Wireless Self Powered Environmental
[2] M. Rahaman Laskar, R. Bhattacharjee, M. Sau Giri, and P. Monitoring System for Smart Cities based on LoRa”, Panhellic
Bhattacharya, “Weather Forecasting using Arduino Based Cube-Sat”, Conference on Electronics and Telecommunications (PACET), 2017.
Twelfth International Multi-Conference on Information Processing [16] Munsyi et al., “An Implementation of Data Exchange Using
(IMCIP) – 2016. Authenticated Attribute-Based Encryption for Environmental
[3] Vinayak Appasaheb Pujari, M. M. Raste, and A. A. Pujari, “Cost Monitoring”, 2017 International Electronics Symposium on Knowledge
Effective Automatic Weather Station-a Review”, International Journal Creation and Intelligent Computing (IES-KCIC).
of Electrical and Electronics Engineers (IJEEE)-Vol. No. 8 Issue 01, [17] Somansh Kumar, “Air Quality Monitoring System Based on IoT using
January-June 2016. Raspberry Pi”, International Conference on Computing, Communication
[4] C. H. Chavan, and V. Karande, “Wireless Monitoring of Soil Moisture, and Automation (ICCCA 2017).
Temperature and Humidity using Zigbee in Agriculture”, International [18] Cho ZinMyint, Lenin Gopal et al., “WSN-based Reconfigurable Water
Journal of Engineering Trends and Technology (IJETT)-Volume 11 Quality Monitoring System in IoT Environment”, 2017 14th
Number 10 – May 2014. International Conference on Electrical Engineering or Electronics,
[5] Mayur Randhir, R. R. Karhe, “Monitoring Of Environmental Parameters Computer, Telecommunication and Information Technology.
by Using Cloud Computing” International Journal of Computer Science [19] SanketSalvi, Pramod Jain et al., “Cloud Based Data Analysis and
Trends and Technology (IJCST) – Volume 3 Issue 3, PP: 151-155. May- Monitoring of Smart Multi-level Irrigation System Using IoT”
June 2015. International Conference on I-SMAC (IoT in Social, Mobile, Analytics
[6] Nelson Gonzalez, Charles Miers, Fernando Red´ıgolo, Marcos and Cloud), 2017.
Simpl´ıcio, Tereza Carvalho, Mats N¨aslund and Makan Pourzandi, “A [20] Alif Akbar Pranata, Jae Min Lee et al., “Towards an IoT-based Water
quantitative analysis of current security concerns and solutions for cloud Quality Monitoring System with Brokerless Pub/Sub Architecture”
computing” Journal of Cloud Computing: Advances, Systems and IEEE Transaction on Instrumentation and Measurement 2017.
Applications 2012, 1:11. [21] HakanUcgun, et al., “Arduino Based Weather Forecasting Station”, 2nd
[7] Mahesh D. S, Savitha S, and Dinesh K. Anvekar, “A Cloud Computing International Conference on Computer Science and Engineering 2017.
Architecture with Wireless Sensor Networks for Agricultural [22] J.Cabra, D.Castro et al., “An IoT approach for Wireless Sensor
Applications”International Journal of Computer Networks and Networks applied to e-health environmental monitoring”, 2017 IEEE
Communications Security Vol.2, No.1, January 2014, 34–38 Available International Conference on Internet of Things and IEEE Green
online at: www.ijcncs.org ISSN 2308-9830. Computing and Communications and IEEE Cyber, Physical and Social
[8] C. H. Chavan, and P. V.Karande, “Wireless Monitoring of Soil computing and IEEE Smart Data.
Moisture, Temperature & Humidity Using Zigbee in Agriculture” [23] Pablo Velasquez, et al., “A low-cost IoT based Environmental
International Journal of Engineering Trends and Technology (IJETT) – Monitoring System. A citizen approach to pollution awareness”, 2017
Volume 11 Number 10 - May 2014. CHILEAN Conference on Electrical, Electronics Engineering,
[9] Basil Ahammed, Design & Implementation of Smart House Control Information and Communication Technologies (CHILECON).
Using LabVIEW, International Journal of Soft Computing and [24] Nikolas Vidakis et al., “Environmental Monitoring through Embedded
Engineering (IJSCE), 1 (6), 2012. System and Sensors”, 52nd International conference on Power
[10] Dingrong Yuan, Shenglong Fang, Yaqiong Liu, The design of smart Engineering Universities, 2017.
home monitoring system based on WiFi electronic trash, Journal of [25] Shirazi et. al.. “Damage identification using wireless structural health
Software, 9 (2), 2014, 425-428. monitoring system through smart sensor application”, International
Journal of Advanced and Applied Sciences 4.2. 2017: 38-43.
502 | P a g e
www.ijacsa.thesai.org