Iot-Based Smart Agriculture Monitoring System With Double-Tier Data Storage Facility
Iot-Based Smart Agriculture Monitoring System With Double-Tier Data Storage Facility
Iot-Based Smart Agriculture Monitoring System With Double-Tier Data Storage Facility
net/publication/341589970
CITATION READS
1 4,533
2 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Smart LCC Device: LCC-Based IoT Device for measuring urea consumption in major food crops View project
All content following this page was uploaded by Akhlak Uz Zaman Ashik on 28 May 2020.
1 Introduction
Agriculture is the most important sector for humankind to survive their existence.
It enhances a big concern to manage food for people all over the world. Most of
the farmers follow very traditional methods to cultivate their crops. They used to be
present physically on their farm to monitor crops. Use of technology can make this
job easier and time efficient. Internet of things (IoT) is a technology which can send
or receive any data to a server using the Internet. Using this technology, farmers can
monitor the actual condition of the crops without being present in their field. In this
paper, we have proposed a system to monitor the farming field with the help of IoT
technology. This system allows various devices and sensors to send data over the
Internet. It enables farmers to monitor their field remotely from their home by using
a smartphone or a computer.
Almost every field embraces the Internet of things (IoT) revolution [1]. Agri-
culture has seen many transformations and has adopted many machines to improve
the yield. Field (soil and environmental parameters) and crop health monitoring are
important factors for the yield to be of better quality. In recent years, there have been
many technological advancements in agriculture which have led to an increase in
productivity and immunity of the crops. About 70% of the freshwater available in
the world is consumed by the agriculture sector [2], with the help of soil moisture
sensor, we can optimize the irrigation process and use of water [3, 4]. The technology
which plays a key role in this is the Internet of things (IoT) [5]. Traditional agricul-
ture is transforming into smart agriculture due to the penetration of the Internet of
things (IoT) in the agricultural sector. The IoT networks are reducing human labor
requirements by monitoring crop health and field environment remotely. IoT uses a
wireless sensor network (WSN) as the backbone for gathering information for these
monitoring and control applications. The monitoring system consists of end devices
equipped with a variety of sensors to monitor various parameters like temperature,
humidity, pH, soil moisture, etc. and is capable of communicating this data to the
other devices [6, 7]. IoT is helping the farmers by monitoring growth stages of the
crop, and estimation of the yield by giving otherwise restricted low-power, low-cost
devices access to greater processing capabilities via the Internet. Recently, for remote
sensing, drones are widely being used in agriculture [8]. They are diminishing the
role of satellites in monitoring and capturing images for agriculture by providing
control and flexibility [9].
IoT systems for agriculture monitoring should be of low cost such that it is afford-
able to the farmers. In a monitoring network, there are many sensor nodes, sink nodes
and a gateway depending on the network topology and area of the field. The sink
node collects data from the sensor nodes and uploads it to the cloud server [10]. So
in this paper, we proposed a low cost and easy accessible IoT-based smart agriculture
with double-tier architecture of storing all the sensor data.
The rest of the paper is organized as follows: Sect. 2 presents the related work.
Section 3 proposed network architecture and its deployment. Section 4 we have
discussed system prototype. Section 5 we have discussed the results.
2 Related Works
In recent years, many efforts have been taken to change the traditional agriculture
system. For any smart agriculture system, it should operate in a systematic way to
maximize quality and productivity. So by implementing a more reliable system can
cut the cost, human labor, and wasting resources. But most of them are using the
Wi-Fi module to transmit the sensor data to the server, in real life, which is difficult
to find in an agriculture field. Also, most of them are using one tire data storage
system either cloud database or local database to store data, and if database crush for
any reason there will be no possibility to get all those data back. So unfortunately
because of the complicacy and other problems smart farming is not as widely used
as it has to be.
Liu [11] proposed a wireless sensor network prototype for environmental moni-
toring in greenhouse, where they have created a sensor node and a sink node with a
central management system where sink node was for collecting data from the sensor
nodes wirelessly and then send it to the management center using short message
service (SMS). But the problem was data was not available for monitoring from
anywhere except the management center. And the cost was so high.
Ibrahim Mat in the year 2016 [12] presented a greenhouse management system
(GHMS) was a smart irrigation system (Fig. 1). GHMS is based on wireless sensor
network (WSN) technology. In this particular application, GHMS is used to manage
the greenhouse condition. GHMS will read the wetness of the soil media in the
8 IoT-Based Smart Agriculture Monitoring System with Double-Tier … 101
greenhouse by using a moisture sensor. GHMS will read the wetness of the air in
the greenhouse by using the humidity sensor. GHMS read the heat of the air in the
greenhouse by using temperature sensor which was only proposed for a greenhouse.
Athani [13] in the year 2017 presented a soil moisture monitoring using IoT-
enabled Arduino sensors with neural networks for improving soil management for
farmers and predict seasonal rainfall for planning future harvest in North Karnataka—
India. They have used a Wi-Fi module to transmit the data to the Web server database.
But in real life, Wi-Fi is difficult to find in an agriculture field.
And there many more related works for making traditional agriculture system to
smart using IoT technology.
The system could be described as a two-part shown in Fig. 2. The first part is the
sensor mesh network for data acquisition. The environmental parameters including
temperature, humidity, and pH, soil moisture could be sensed by the monitoring
network. After acquisition, data is routed to a special sink node over Bluetooth
communication, which could gather the data and send them to the structured query
language (SQL)-based server using TCP/IP connection through the GSM/GPRS
network and a Web site and mobile application-based remote monitoring system
will be there to visualize all the data to user. We have used Bluetooth communication
between sensors node and sink node because Bluetooth is a standardized protocol
102 MD S. Ahmad and A. U. Zaman
for sending and receiving data via a 2.4 GHz wireless link. It is a secure protocol,
and it is perfect for short-range, low-power, low-cost, wireless transmission between
electronic devices.
The whole system architecture is explained in Fig. 3, each sensor node is connected
to a sink node. And all the systems are connected to the Internet and used to send
and receive all the data, the server and provides a central control to the monitoring
field through the Web application and mobile application.
We have selected popular and common components to make our sensor network
technology understood sufficiently. The components of the network are shown in
Table 1, where all the components of a sensor node and sink node are described and
which could be established as a demo mesh network.
8 IoT-Based Smart Agriculture Monitoring System with Double-Tier … 103
the sensors and Bluetooth module are connected to the Atmega328 microcontroller-
based Arduino Nano by serial port (Fig. 4).
The sink node is composed of an Arduino Nano board and Bluetooth module
HC-05, GSM module (Sim900A) connected with the board. Bluetooth module is
for receiving data from all sensors node wirelessly. An SD card module with a micro
SD card is connected to the Arduino board for store all the data collected from sen-
sors node locally. And a GSM module is also connected to the board for sending all
the collected data to a remote server.
Here, we used two-tier architecture for storing sensor data for data security. Data
will be stored in local storage and then all data will be sent to the remote server
through the GSM network. So that in case of the low network, server problem or any
other problem occurs with the GSM module, network or server we do not need to
worry about the data during the period of disconnection.
A free Web hosting service is used for a Web server construction. A Web page
was composed of simple PHP that can directly connect to and manipulate a database
table. The command “mysqli_connect” is used to establish a connection to a MySQL
database. After the connection is established, the field information can be entered
into a designated table by executing a SQL INSERT statement through the PHP
function “mysqli_query”.
For each sensor node data, there will be a separate data table. The structure of
the field data table is listed in Table 2. It consists of ID fields (ID, NodeID) and a
8 IoT-Based Smart Agriculture Monitoring System with Double-Tier … 105
sensor node information fields (time, temperature, humidity, moisture, and PH). The
“ID” field is a primary key designed to have auto-increment attribute so it can be
used to distinguish respective rows. Sequence numbers are assigned automatically
when node information is inserted. “NodeID” field can be used to store as a node
unique ID if users want to track any particular node information. The “Time” field
automatically stores current time due to the use of CURRENT_TIMESTAMP when
the node information is received.
We have used a Web site-based and mobile app-based system for data visualization
which will fetch the data from the database visualizes these using different types of
graphs shown in Fig. 7. After fetching the moisture readings from the database, we
106 MD S. Ahmad and A. U. Zaman
are going to display the moisture readings which include timestamp and moisture
content it with the look-up table. If it is in the range 0–100 then the sensor is in the
air, if the moisture content is in the range from 100 to 300 dry, if moisture content
ranges from 300 to 700 humid or optimal, if it ranges from 700 to 1000, it is excess.
A user/farmer can monitor their field by their preferred way no matter wherever
they are in the world if the user has their smartphone they can access the field data
(Fig. 8).
8 IoT-Based Smart Agriculture Monitoring System with Double-Tier … 107
5 Conclusion
This smart agriculture monitoring system was developed and tested to track the
current situation in the agriculture field in real time. This paper has described the
design and implementation of our IoT-based monitoring system. A device combined
with sensors node and a sink node, a server, and a smartphone application is used
for this system. In this work, the field data monitoring device is a composition of
a microcontroller, GSM module, Bluetooth module, SD card module, and various
sensors to acquire data from an agriculture field and transmit it to a server through
GSM network. On the other end, the Web interface written in PHP is implemented
to connect to a database directly. And a smartphone application has been developed
to display all the data. Furthermore, this implementation is low cost (approximately
40$–50$ for each node) and easily accessible.
References
13. Athani S, Tejeshwar CH, Patil P, Patil MM, Kulkarni R (2017) Soil moisture monitoring using
IoT enabled Arduino sensors with neural networks for improving soil management for farmers
and predict seasonal rainfall for planning future harvest in North Karnataka-India. International
conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC 2017)
14. Arduino Nano. https://store.arduino.cc/usa/arduino-nano. Accessed 11 May 2019