Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/220791617

Web based poultry farm monitoring system using wireless sensor network

Conference Paper · January 2009


DOI: 10.1145/1838002.1838010 · Source: DBLP

CITATIONS READS

33 6,947

3 authors:

Mohsin Murad Yahya M. Khawaja


Umm Al-Qura University University of Engineering and Technology, Peshawar
19 PUBLICATIONS   207 CITATIONS    46 PUBLICATIONS   316 CITATIONS   

SEE PROFILE SEE PROFILE

Ghulam Mubashar Hassan


University of Western Australia
86 PUBLICATIONS   480 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

License Plate Recognition system using Blackfin DSP View project

Image Processing applications View project

All content following this page was uploaded by Mohsin Murad on 03 December 2015.

The user has requested enhancement of the downloaded file.


Web Based Poultry Farm Monitoring System Using
Wireless Sensor Network
Mohsin Murad Khawaja Mohammad Yahya Ghulam Mubashar Hassan
N-W.F.P. University of Engineering N-W.F.P. University of Engineering N-W.F.P. University of Engineering
& Technology & Technology & Technology
NWFP UET, P.O. Box 814 NWFP UET, P.O. Box 814 NWFP UET, P.O. Box 814
Peshawar, Pakistan Peshawar, Pakistan Peshawar, Pakistan
mohsin_murad@yahoo.com yahyakm@yahoo.com gmjally@yahoo.com

ABSTRACT 1. INTRODUCTION
In advanced poultry farms, various measurement spots are The most vital climatic factors for the productivity of a poultry
required to record the local climate variables in different parts of farm are temperature and humidity. Every phase of poultry
the large poultry farm to make the automation and control system production requires maintaining a particular temperature and
work properly. The use of cables will make the system difficult to humidity. Take a day-old chicken requiring 33°C (91°F) at a
install as well as expensive. The cabled sensing spots, once relative air humidity of 50% for instance. If the outside
installed, are exposed and difficult to be rearranged. Thus, a temperature is 24°C (75°F) and the air is headed straight into the
Wireless Sensor Network (WSN) consisting of small nodes zone taken by the birds without being heated first, the chicken
(motes) equipped with a radio transceiver and one or many would find this very cold. Therefore, proper ventilation should be
sensors can be an attractive and inexpensive option in building the provided along with an appropriate heating/cooling solution. With
required measurement system. modern technology it is desirable and possible to monitor these
In this paper, we developed a poultry farm monitoring system climatic parameters automatically than conventional monitoring
based on WSN using Crossbow’s TelosB [1] motes integrated methods. The most favorable poultry farm climate adjustment
with commercial sensors capable of measuring temperature and especially during the summer and winter seasons can help
humidity values. The network’s data is uploaded into an online improve productivity of the farm and preserve energy.
database using an agent program and then accessed via the In older poultry farms only a single cabled measuring point,
internet using web analysis applications. The feasibility of the present in the middle, was considered enough to provide feedback
developed system was tested by deploying the proposed system at to the poultry farm automation system. The overall system was
N-W.F.P. Agricultural University’s research poultry farm [6] in usually without the option of controlling local heating, ventilation
Peshawar in the North-Western Frontier Province of Pakistan. or some other activity, which was acting on the poultry farm
During a daylong experiment, we collected the data to test and interior climate. Everything has changed in modern poultry farms.
evaluate the WSN’s reliability and its ability to detect and report The typical size of the poultry farm itself is much bigger than
anomalies in the environment. This paper is a first step towards what it was before, and current poultry farm facilities provide
WSN based poultry farm monitoring. We provide an online various options of making local adjustments to the heating,
monitoring solution for poultry farms and test its feasibility and ventilation and other poultry farm support systems. However, in
reliability by presenting a through data analysis of our pilot order to provide such facilities they need more measurement data
deployment. for the automation system to work properly. Increasing the
number of measurement spots should not fiercely increase cost of
Categories and Subject Descriptors the automation system. There must be a possibility of relocating
C.2.1 [Network Architecture and Design]: Wireless the measurement spots according to the particular needs, which
communication; D.1.0 [Programming Techniques]: Concurrent depends on particular control plant, possible changes in the
Programming—Distributed programming external weather or the poultry farm structure and the position of
the plant in the poultry farm.
General Terms Wireless Sensor Network (WSN) can form a useful part of the
Measurement, Design, Experimentation
automation system architecture in modern poultry farms. Some
Keywords parts of the control system itself can be implemented in a
distributed manner to the network such that local control loops are
Poultry Farm, Monitoring System, WSN.
formed. Similarly, wireless communication can be used to gather
sensor values and to communicate between the centralized control
and actuators located at different parts of the poultry farm.
Permission to make digital or hard copies of all or part of this work for
personal or classroom use is granted without fee provided that copies are
Compared to a wired system, the installation and deployment of a
not made or distributed for profit or commercial advantage and that WSN is fast, cost effective and easy. It is easier to relocate the
copies bear this notice and the full citation on the first page. To copy measurement spots by simply moving the sensor nodes (motes)
otherwise, or republish, to post on servers or to redistribute to lists, from one location to another within the communication range.
requires prior specific permission and/or a fee. WSN maintenance is relatively cheaper and easier. The only
FIT’09, December 16–18, 2009, CIIT, Abbottabad, Pakistan.
additional costs occurs when motes run out of batteries and the
Copyright 2009 ACM 978-1-60558-642-7/09/12....$10.
batteries need to be replaced or charged, but the lifespan of the used to enhance the signal strength. Wireless sensors network
battery can be several years if efficient power saving algorithm is does not have problems like these as data is transmitted to the
base station (sink) node which is connected to the computer (see
applied.
Figure 3), or it can be transmitted in a multi-hop manner via
In the proceeding work we took the first steps towards the
router nodes, if the distance between the measuring nodes and the
wireless poultry farm automation system by building a web based
computer exceeds the length of a single radio link. Besides data
monitoring system for that purpose and testing its feasibility and
collecting and control algorithm, the computer also shows the
reliability with a simple experimental setup. We integrated a
poultry farm’s humidity and temperature statistics on the display
commercial sensor to CrossBow’s TelosB [1] platform. By using
screen for the user. Running the poultry farm climate control
this sensor we were able to measure two climate variables:
algorithm, the new values for the control signals are computed
relative humidity and temperature. The platform uses CTP [11]
typically in 25-60 seconds.
protocol, which allows us to send data packets to a sink mote over
IEEE 802.15.4 networks. Each control signals generated is connected to an electronic
relay, which is used to switch the equipment on or off through the
2. RELATED WORK second relay which provides the devices, the voltage they need.
Ayahiko et al. [2] are doing research in a broiler-house A modern poultry farm can consist of several parts which
environment system using sensor network and mail delivery contain their own local climate variable settings. Therefore, a
system. They have proposed a system that combines the sensor distributed sensing mechanism will be required containing several
network with the mail delivery system to construct the system that measurement spots.
observes an environmental change of the broiler-house. As a
result of hearing of the producer, the environment system needs to 4. EXPERIMENTAL SETUP IN A
able to be observed some broiler-houses, to inspect the summary
data from the cellular phone, and to transmit the warning mail in a POULTRY FARM
rapid temperature change. The sensor modules are put in the each 4.1 The Poultry Farm
broiler-house, and the network by wireless LAN communication We have done our experiments in N-W.F.P. Agricultural
is constructed, because the system needs to watch of two or more University’s research poultry farm [6] in Peshawar in North-
broiler-houses, and it is difficult to setup a large-scale system at Western Frontier Province of Pakistan. The size of the poultry
the broiler-house. The always-connected high-speed Internet is farm is 30 x 90 meters and in its traditional control system it has
preferable to accumulate, to process data, and to offer it to the only one wired measurement unit in the middle.
user in a comprehensible form. But, it is difficult to build always- The communicating motes could work at maximum possible
connected high speed Internet at the chicken farm which is used distances in their communication range as there were no such
by experiment. The server is set up in the remote place, and they obstacles and the chickens were kept at floor. We limited the
propose the system that delivers data from the chicken farm with distance between communicating motes to 20 meters in our
mail [2]. deployment.
The Rinnovando group [3] is doing research work in a tomato
greenhouse in the South of Italy. They are using Sensicast devices 4.2 Motes
or the air temperature, relativity humidity and soil temperature The wireless sensor node we used was CrossBow’s TelosB
measurements with wireless sensor network. They have also Mote TRP2420 (see Figure 1) [1]. Key features of the mote
developed a Web-based plant monitoring application. Greenhouse include 250kbps 2.4GHz IEEE 802.15.4 Chipcon Wireless
grower can read the measurements over the Internet, and an alarm Transceiver, Integrated ADC, DAC, Supply Voltage Supervisor,
will be sent to his mobile phone by SMS or GPRS if some and DMA Controller. It also has integrated onboard antenna with
measurement variable changes rapidly. Bridge node gathers data 50m range indoors / 125m range outdoor. It also has USB based
from other sensor nodes, which transmit the measurements of programming and data collection, a low-power MSP430
temperature and relative humidity in one minute intervals [3]. Microcontroller with extended memory and an optional sensor

3. POULTRY FARM CONTROL SYSTEM


A main concern in humidity and temperature control is to
provide the best suited environment for poultry nourishment.
Humidity control is also an important tool to prevent the spread of
broiler diseases in poultry farms. Normally, the range of healthy
relative humidity for the broilers is from 30% to 60%.
Temperature and humidity are closely linked together in a
poultry farm. Cold air has a lower moisture-holding capacity than
warmer air, and therefore the decrease of the relative humidity is a
sign of increased air temperature [5].
Poultry farm monitoring and control can be divided into three
main tasks: Measuring, calculating and adjusting. The measured
values of the climate variables are first converted from analog to
digital and then transmitted to the computer. Because of the
coarse internal environment and high moisture, the computer is
Figure 1. CrossBow's TelosB Mote with integrated temperature,
usually located outside the poultry farm. The signal generated
humidity and light sensors.
from the sensors is usually weak so a signal amplifier must be
suite. The motes had a built in battery pack and used two AA-
batteries as power source.

4.3 Sensors
For measuring the temperature and relative humidity we used
Sensirion SHT11 [4] all-round temperature and humidity sensor.
SHT11 is Sensirion’s family of surface mountable relative
humidity and temperature sensors. The sensors integrate sensor
elements plus signal processing on a tiny foot print (see
Figure 2) and provide a fully calibrated digital output. A unique
capacitive sensor element is used for measuring relative humidity
while temperature is measured by a band gap sensor.
Both sensors are seamlessly coupled to a 14bit analog to digital
converter and a serial interface circuit. The 2 wire serial interface
and internal voltage regulation allows for easy and fast system
integration. Temperature accuracy of the sensor is ±0.3 °C and the
accuracy of the relative humidity under ±2 %. The tiny size and
low power consumption makes SHT11 the ultimate choice for Figure 3. Motes deployment in one of the feeder compartment
even the most demanding applications including sensor networks. of poultry farm.
4.4 Motes deployment and network 5. RESULTS
architecture In our monitoring setup, 3 motes were deployed in each feeding
We used a star topology [10] where the following humidity and compartment to acquire information about the differences in
temperature sensors mounted on 4 motes measured climate varying climate variables. In the three hour time, every mote read
variants and communicated directly with the base station node for temperature and relative humidity values once every 10 minutes.
data acquisition. The base station mote acted as a coordinator and We observed that the reliable range in terms of tolerable packet
received the measured data from the sensor motes. A laptop loss was approximately 40 meters. It was figured out in a test
computer was connected to the base station mote via USB-cable where the distance between the individual measuring mote and the
and both were placed outside the feeding compartment. base station mote was increased until the connection was lost.
The poultry farm is divided into four feeding compartments and Compared to the maximum indoor communicating distance of the
three motes were deployed to monitor each compartment. Figure 3 motes which is approximately 50 meters, the reliable range fell by
shows how the motes were deployed in each poultry farm 10 meters which accumulated to be 20% less than the maximum
compartment. Node 1 (see Figure 4) was placed 100 cm away communicating distance.
from the breeding room’s door at the back. Node 2 was placed
162 cm away from the ventilation window to monitor the climate
variables closer to the side wall. Node 3 was placed at the
geometric centre of the compartment near the main water drinking
counter.
Sleep and wake modes were applied in a periodic manner. For
a particular mote, the wake time was 10 seconds and sleep time
was 600 seconds (10 min). At an instance, only one of the four
motes equipped with temperature and humidity sensors was
reading data from the sensors and transmitting it to the base
station mote. In this manner collisions between deployed motes’
transmission were avoided. The data is received at the computer
using a java serial forwarder and this data is injected into an
online database using java database connectivity (jdbc) driver.
The database fields are then read using a PHP based web
application (see Figure 5).

Figure 4. Motes deployed in various locations at N-W.F.P.


Figure 2. Sensirion SHT11, temperature and Agricultural University's research poultry farm.
relative humidity sensor.
Relative Humidity (%RH)
Figure 5. Architecture of the web based monitoring system.
The humidity and temperature relation has already been
mentioned in Chapter III. The readings collected by the motes
verified the fact that the lowering of the relative humidity
increases the air temperature and vice versa. Figure 6 shows the
changes in relative humidity between three nodes. Comparison Time (HH:MM)
between temperature and humidity values (Figures 6 and 7) shows Figure 6. Relative Humidity values from the motes.
how variables are linked together. Temperature values increased
at the same time when moisture dropped, as shown in Figure 7.

6. CONCLUSION AND FUTURE WORK


In this work, we integrated commercial sensors with
CrossBow’s TelosB mote to measure temperature and humidity
values in a poultry farm monitoring system. The system feasibility
was verified in a simple star topology setup in a research poultry
farm. We achieved up to 40 meter communication range with
tolerable 5% packet loss. The measurements also indicated that
Temperature (ºC)

the system is able to detect the local anomalies in the greenhouse


environment, such as different climate layers which exist from
greenhouse ventilation windows to the center.
Applied 10 seconds wake periods between 10 minutes sleep
periods fulfilled the requirements of the energy efficient wireless
sensor network architecture. Each sensor node was sending
packets in its own turn. SHT11 humidity/temperature sensor with
low current sleep mode and accurate sensors is well suitable for
wireless sensor nodes powered by batteries.
In addition to networking in data collecting purposes, we will
develop the control part and close the wireless control loop. The
control commands will be counted in a centralized or locally Time (MM:HH)
centralized manner, and then transmitted wirelessly to the Figure 7. Temperature values from the motes.
actuators located to the different parts of the poultry farm.
Required local control implementations suggest us to use DSP- [3] M. Mancuso and F. Bustaffa, “A Wireless Sensors Network for
Monitoring Environmental Variables in a Tomato Greenhouse,”
units with some of the wireless sensor nodes. presented at 6th IEEE International Workshop on Factory
Communication Systems in Torino, Italy, June 28-30, 2006.
7. REFERENCES [4] Sensirion (2007). SHT11 - Digital Humidity Sensor (RH&T).
[1] CrossBow Technology (2008).TelosB
Motes.[Online].Available:http://www.xbow.com/Products/productde [Online].Available:http://www.sensirion.com/en/01humiditysensors/
tails.aspx?sid=252 02humiditysensorsht11.htm
[2] Niimi, Ayahiko; Wada, Masaaki; Ito, Kei; Toda, Masashi; Hatanaka, [5] Temperature and humidity perception,
Katsumori; Konishi, Osamu “Broiler-house environment monitoring http://www.newton.dep.anl.gov/askasci/wea00/wea00133.htm
system using sensor network and mail delivery system”. Artif. Life [6] Department of Poultry Sciences, N-W.F.P. Agricultural University,
Robot. 13, No. 1, 264-270 (2008) Peshawar, Pakistan.
[Online].Available:http://www.aup.edu.pk/poultry_sciences.php
[7] Philip Levis. Tinyos Programming. [10] G. Barrenetxea, F. Ingelrest, G. Schaefer, and M. Vetterli. The
[Online].Available:http://csl.stanford.edu/~pal/pubs/tinyos- hitchhiker’s guide to successful wireless sensor network
programming.pdf deployments. In Proc. of the 6rd Int. Conf. on Embedded Networked
[8] Mainwaring, Polastre, et al. “Wireless Sensor Networks for Habitat Sensor Systems (SENSYS), 2008.
Monitoring”. online posting.2002 ACM International Workshop on
[11] F. Rodrigo, O. Gnawali, K. Jamieson, S. Kim, P. Levis, and A. Wo.
Wireless Sensor Networks and Applications September 28,2002. 13
May 2003. The collection tree protocol. In TinyOS Enhancement Proposal, TEP
[9] “Basic Introduction to Broiler Housing Environmental 123, August 2006.
Control”.(2005).[Online].Available:http://www.
pubs.caes.uga.edu/caespubs/pubs/PDF/B1264.pdf

View publication stats

You might also like