<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Sensor and arduino based monitoring system in Albanian agricultural domain</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dhonat Kote (PhD Candidate)</string-name>
          <email>kotedonatos@yahoo.gr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alda Kika</string-name>
          <email>alda.kika@fshn.edu.al</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Tirana, Faculty of Economics</institution>
          ,
          <addr-line>Saranda Branch</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Tirana, Faculty of Natural Sciences, Department of Informatics</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper proposes a real-time system based on sensors and Arduino for monitoring the temperature and humidity of the environment. Instead of measuring manually these parameters in different times during the day, the proposed system will measure them in real time and show the results to the users. The system is composed of sensor network build with Arduino to measure the parameters and the web application which will be used to present the result to the users. It will register the data in specific intervals in the database. These data will serve as historical data and can be shown to the users in graphical form through the web application. The web application will be used to provide to the farmers useful data about the environmental parameters in order to prevent hazardous incidents. The collected data can be analyzed and extract useful information that can be used to develop recommendation in the future.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Agriculture domain is very important in Albania not
only for the production of food but also for supporting
a large scale of employment. According to the
Agricultural census conducted in 2012 in Albania
there were 324,000 farms in Albania and number of
employed in agriculture, forestry and fisheries was
51% of the total. This sector has been steadily
growing reaching an annual growth. ICT has big
impact on agriculture providing opportunities for
farmers [AS13]. Precision Agriculture (PA) is an
agricultural system information-based and
technologydriven designed to improve the agricultural practices
and processes in order to maximize the productivity of
farms[KMH14].</p>
      <p>Agricultural activities are affected by environmental
factors such as ambient temperature and humidity.
Therefore, it is important to monitor environmental
parameters and make effective use of the resources
through the design and implementation of systems
which can monitor these parameters [Chun13].</p>
      <p>In this paper, we present a real time agricultural
environmental monitoring system using wireless sensor
networks based on arduino, capable of measuring
temperature and humidity. The web application
module of the proposed system will act as the
farmer’s assistant in the field. It will provide essential
agriculture related information like temperatures
environment and humidity to the farmer. The
database of the system will keep track of the data
related to the environmental information as well as the
data related to the inventories of the farmer, purchases
or equipment. The organization of this work is as
follows. Section 2 contains the related work, in section
3 the design of the proposed system is presented, and
section 4 and 5 provide details about hardware
components and software implementation of the
proposed system. Finally conclusion and future work
has been discussed in the section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>2 Related Work</title>
      <p>Several solutions are presented in the literature using
network of sensors in the agriculture domain. Sensor
wireless network are becoming an ideal, effective and
economical solution for monitoring issues because it is
feasible to install wireless access points at locations
where cabling is almost impossible, and it also reduces
infrastructure costs [AS13]. In [APY+15] an
implementation of a wireless sensor network for
monitoring of environmental parameters using sensors,
an Arduino microcontroller and GSM module for
transmitting the data to the Receiver station through
SMS is presented. A distributed Monitoring Systems
comprised of a self-organizing wireless sensor network,
a GPRS Gateway which gathers data and provides a
TCP-IP based connection toward a Remote Server and
a web application which manages information and
makes the final user capable of monitoring and
interacting with the instrumented environment are
explained in [PBC+10]. The web and android platform
is used to show the measurement results from ZigBee
sensors for monitoring the environment parameters
such as temperature, humidity and air quality in a
factory [LHS13]. The research proposes to use
ZigBee, Wi-Fi protocol and integrated embedded
system built by the open-source 32-bit ARM
(Advanced RISC Machine) core Arduino Due module.
The potential of arduino is used in thousand of projects
ranging from simple to very complex systems in
different domains. Arduino as an inexpensive
microcontroller platform offers many advantages to its
users such as simple programming environment, open
source and extensible software and harware. The
proposed system is based on arduino technology to
benefit from its advantages.</p>
    </sec>
    <sec id="sec-3">
      <title>3 The proposed system</title>
      <p>The environmental monitoring system is based on a
wireless sensor network. It consists of the sensor nodes
for measuring temperature and humidity, Arduino
coordinator node for local computation, Wifly module
for data communication and web application for
displaying the parameters to the user.
The Wifly Shield is used to establish communication
between the microcontroller and the web application.</p>
    </sec>
    <sec id="sec-4">
      <title>4 Hardware Implementation</title>
      <p>Temperature and humidity parameters are measured
by the sensor DHT11. DHT11 is multifaceted with a
calibrated digital signal output features. The DHT
sensors are made of two parts, a capacitive humidity
sensor and a thermistor. A basic chip inside does
analog to digital conversion.
DHT11 module works on serial communication. This
module sends data in specific time period to Arduino.
The specific characteristics of this sensor are:
 The function tension is 5 v
 Measure the temperatures in the range from
050°C with accuracy ±2°C
 Measure the humidity in the range 20-90%
with accuracy ±5%
 No more than 1 Hz sampling rate (once every
second)
 Body size 30mm x 20mm
Arduino Uno micro-controller (ATMEGA328) is the
main component that is connected to all the
components. It's an open-source physical computing
platform based on a simple micro-controller board, and
a development environment for writing software for the
board[KTKP15]. Arduino projects can be stand-alone,
or they can communicate with software running on your
computer.</p>
      <p>Its technical characteristics that make it very suitable
to suport the micro-controller, connect it to a computer,
power it with an AC-to-DC adapter or battery to get
started are :
 The function tension is 5 v
 Input tension is 7-12 V
 14 digital input/output pins
 6 analog inputs
 16MHz ceramic resonator
 USB connection
 Power jack
 ICSP header
 A reset button
 Frequency 16 MHZ
 flash memory 32 KB
 memoria SRAM 2KB
 EEPROM memory 1KB
The image of Arduino Uno is dipslayed in the figure 3.
WIFI which is known as IEEE 802.11x is the most
known technology for wireless connection of
computers or smartphones. Arduino utilizes the WiFI
shields to allow the microcontroller to function with
greater mobility. Shields are special boards you can
purchase that support a specific function. Through
WiFI Shields signals are transmitted over an 802.11x.
Depending on the protocol used, WiFi 802.11x is
capable of receiving signals in a frequency range of 2.4
– 4GHz, and with data rates ranging from 1- 150 Mbit/s
[IEEE08]. Different equipment offer different
transfer rate until 54 Mbps and distance 150 meters
with frequency 5 GHz. The connection of arduino to
the wireless network is done through Wifly module
RN-171. The module is pre-loaded with firmware to
simplify integration and minimize development time of
the application. An on-board antenna allows the shield
to cover a wider range and transmit stronger signals.
The RN-171 module supports TCP, UDP, FTP, and
HTTP communication protocols to meet the needs of
wireless network.</p>
      <p>In figure 5 our respective design of the hardware
components using Fritzing environment is presented.
Fritzing is an open source tool for anyone to teach,
share, and prototype their electronic projects.
A screenshot from the real system is shown in figure 6.</p>
    </sec>
    <sec id="sec-5">
      <title>5 Software implementation</title>
      <p>The following technologies CSS, HTML5, Bootstrap,
XAMPP, MYSQL, PHP and an ecommerce template
were used to design the site and its implementation.
The web site will connect to arduino to get the
measurements from the sensors. Steps and installation
are shown as follows:





</p>
      <sec id="sec-5-1">
        <title>Installation of XAMPP.</title>
      </sec>
      <sec id="sec-5-2">
        <title>Installation of the template in XAMPP.</title>
      </sec>
      <sec id="sec-5-3">
        <title>Building of the database.</title>
      </sec>
      <sec id="sec-5-4">
        <title>Constructing and applying the harduino</title>
        <p>sketch to arduino
Configuring arduino with the sensors.
Uploading the arduino, wifly shield and sensor
DHT11 libraries.Using the WiFLYHQ library
to set up and menage WIFly module.</p>
      </sec>
      <sec id="sec-5-5">
        <title>The web application will be able to answer a</title>
        <p>HTTP request through the wifly shield and
display the results in the web page.</p>
        <p>In the figure 7 a screenshot of the measurements
graphic is displayed.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6 Conclusions and future work</title>
      <p>This paper deals with the design and development
of a system which uses a wireless sensor network
based on arduino to measure and monitor the
parameters needed in agricultural domain. Every
constitutive element of the system was described in
detail in order to point out the features and the
advantages. The proposed system benefits from the
open nature of the arduino technology and wifi. This
system is designed in such a manner that it can be
extended in the future in two directions: adding more
sensors in the wireless sensor network such as sensor
for the measurement of the PH parameter and
extending the web site to infom the clients about the
products and to sell the products.</p>
      <p>Once this system is fully implemented we will come up
with an independent low cost system which will
measure elements such as the temperature and
humidity as well as it will provide products data in real
time on a site which has two functions at the same time:
to inform the customer and the farmer.</p>
      <p>It would be of special assistance even to the consumer
in Albania when the food safety and informing on
national products are concerned.</p>
      <p>It is a system which complies with the farmers as well
as the consumer in Albania. We believe that this project
can further be improved and enriched in order to be
installed in big agricultural farms.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [Chun13]
          <string-name>
            <given-names>W.Y.</given-names>
            <surname>Chung</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. V.</given-names>
            <surname>Caya</surname>
          </string-name>
          , Ch. Chen.
          <article-title>Wireless Sensor Based Monitoring and Content Management System for Agricultural Application</article-title>
          .
          <source>Annals of Computer Science and Information Systems</source>
          ,Volume
          <volume>1</volume>
          :
          <fpage>75</fpage>
          -
          <lpage>78</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [AS13]
          <article-title>Farah Adila Abdullah, Bahaman Abu Samah</article-title>
          .
          <article-title>Factors impinging farmers' use of agriculture technology</article-title>
          .
          <source>Asian Social Science</source>
          ,
          <volume>9</volume>
          (
          <issue>3</issue>
          ):
          <fpage>120</fpage>
          -
          <lpage>124</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [APY+15]
          <string-name>
            <given-names>N.</given-names>
            <surname>Ansari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Phatnani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Yadav</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Sakharkar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Khaladkar</surname>
          </string-name>
          .
          <article-title>Wireless Monitoring of Agricultural Environment and Greenhouse Gases and Control of Water flow through Fuzzy Logic</article-title>
          .
          <source>International Journal of Emerging Technology and Advanced Engineering</source>
          , V. 5,
          <string-name>
            <surname>I.</surname>
          </string-name>
          <year>4</year>
          :
          <fpage>399</fpage>
          -
          <lpage>403</lpage>
          ,
          <year>April 2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [PBC+10]
          <string-name>
            <given-names>Davide</given-names>
            <surname>Di</surname>
          </string-name>
          <string-name>
            <surname>Palma</surname>
          </string-name>
          , Luca Bencini, Giovanni Collodi,Gianfranco Manes, Francesco Chiti, Romano Fantacci Antonio Manes.
          <article-title>Distributed Monitoring Systems for Agriculture based on Wireless Sensor Network Technology</article-title>
          .
          <source>International Journal on Advances in Networks and Services</source>
          , V. 3,
          <string-name>
            <surname>N.</surname>
          </string-name>
          <year>1</year>
          &amp;
          <issue>2</issue>
          :
          <fpage>18</fpage>
          -
          <lpage>28</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [KMH14]
          <article-title>Mohamed Rawidean Mohd Kassim, Ibrahim Mat, and Ahmad Nizar Harun. Wireless Sensor Network in precision agriculture application</article-title>
          .
          <source>International Conference on Computer, Information and Telecommunication Systems (CITS): 1-5</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [LHS13]
          <article-title>Kuang-Yow Lian 1, Sung-Jung Hsiao 1</article-title>
          and
          <string-name>
            <surname>Wen-Tsai Sung</surname>
          </string-name>
          .
          <article-title>Mobile Monitoring and Embedded Control System for Factory Environment</article-title>
          . Sensors,
          <volume>13</volume>
          :
          <fpage>17379</fpage>
          -
          <lpage>17413</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [KTKP15]
          <string-name>
            <given-names>Karthik</given-names>
            <surname>Krishnamurthi</surname>
          </string-name>
          , Suraj Thapa, Lokesh Kothari,
          <string-name>
            <given-names>Arun</given-names>
            <surname>Prakash</surname>
          </string-name>
          .
          <article-title>Arduino Based Weather Monitoring System</article-title>
          .
          <source>International Journal of Engineering Research and General Science</source>
          ,Volume
          <volume>3</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>2</given-names>
          </string-name>
          , MarchApril:
          <fpage>452</fpage>
          -
          <lpage>458</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <source>[IEEE08] IEEE 802.11 Standard</source>
          . [Online]. Available: http://standards.ieee.org/getieee802/downloa d/802.11y-
          <fpage>2008</fpage>
          .pdf
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>