Abstract
Agriculture is the largest user of water worldwide by using about 70 percent of total consumption. The world food production depends on the availability of water, considering factors such as demographic and climate change, so the use of efficient irrigation is necessary to apply the correct amount of water to crops. The traditional irrigation systems generally program their scheme based on measurements made at Class A evaporimeter pan. In this paper an irrigation scheme defined by an algorithm that automates the amount of water supplied is presented, it considers the consumption of habanero pepper crop, and a fuzzy system evaluates the necessary duration of irrigation. The climatic variables considered are temperature, relative humidity, and soil moisture. The algorithm was programmed in a microcontroller Atmel 328p included in Arduino platform, with the addition of a ZigBee wireless system that allows for monitoring through a PC. The climatic variables were inserted into the fuzzy system by sets of trapezoidal and triangular form and a Mamdani type inference mechanism in which the knowledge of an expert is registered through the fuzzy rules. The system was applied to a habanero pepper crop at Conkal Institute of Technology in Yucatan, Mexico.
1. Introduction
Mexico ranks second in volume production of chili peppers and third in area harvested with 2379736 tons and 136132 ha, respectively, engaged with the 7.1% area and 7.6% ton of world production [1]. The fruits of this plant are of great economic importance because there is a wide variety of applications; there is an excellent source of natural dyes, minerals, and vitamins A, C, and E; the mainly substance that is extracted from this crop is capsaicin whose concentration is very high in the variety known as habanero. There are several regions in Mexico who grow habanero pepper [2]; however, more than 50% of production for domestic and export markets comes from the Yucatan Peninsula, which has provided support for obtaining distinctive “appellation of origin” published in the Official Gazette of the Mexican Federation on June 4, 2010. For production even outside station protected cultivation techniques are used, and the most commonly used structures in protected agriculture are greenhouses, shade mesh, high, and low tunnels. The shadow mesh structure mentioned above is a simple and inexpensive alternative, although very low technology [3].
Environmental variables have, by nature, a complex and nonlinear dynamic. Therefore the information processing solutions are required, based on advanced techniques and technologies, to provide a better result in the production of food [4]. In this context, the use of soft computing techniques (such as neural networks, genetic algorithms, and fuzzy logic) has been considered as real solutions to problems related to the effective management of agricultural resources [5]. One such resource is hydric, characterized by irrigation systems and affecting plant growth and hence production. Due to the above, there are proposals that enable automation and control to carry out this process in the best way [6, 7]. These methods adjust the amount of water supplied according to crop water requirements, the amount of water available in the channel and system components. In systems that use drip irrigation such information has not been considered, because the amount of water is controlled in a certain manner [8]. However, the frequency of irrigation drip systems still depends on climatic factors, soil type, and crop type, so that the control and close monitoring remains necessary in these systems [9–11]. The application of soft computing techniques has been observed in work processes involving environmental control [4, 5], weed control, pest and biological processes [12], and greenhouse climate control [9, 13].
The work presented in [14] is a simulator that aims to provide a model of irrigation scheduling considering different times and different distributions of water in sensitive plant species lack thereof. Project development provides the biophysical modeling, technical and decision subsystems. Time schedule irrigation is carried out considering the water shortage, the amount of available soil water for lawn and plant composition. The limitation of this study is that it is a simulated process and not done in a real environment.
The work in [15] shows an irrigation system used for ornamental plants of different types calculating irrigation from soil type. This work uses: crop coefficient information, the type of soil cultivation, wind speed, solar radiation, temperature, relative humidity, and rainfall level, obtained from a weather station and other measuring devices purchased for that purpose. An important limitation is the use of expensive measuring instruments, applied to field crops, to which most farmers do not have an access.
The work in [16] integrates fuzzy logic and neural networks in a network of sensors in precision irrigation scheme. This is a work in software, which simulates the behavior of irrigation scheduling and is expected to have favorable results in manual application. One drawback is that it proposes the use of precision irrigation equipment (little affordable in most of the time for a producer) to obtain information in a real environment. Blurring the crop is also observed, although some environmental variables needed for irrigation control, such as humidity and temperature which are integrated variables and factors inherent at the crop, are ignored.
In this study, the development of a smart irrigation system based on microclimate variables such as temperature and relative humidity in a shadow mesh structure is proposed. This system is designed to improve irrigation scheme for habanero pepper (Capsicum chinense Jacq.) using the fewest number of variables and taking advantage of expert knowledge. A relevant aspect of this proposal is the possibility of implementation in crops where farmers do not have sufficient financial resources and therefore less access to the technification.
2. Materials and Methods
This work was carried out in a metal covered roof infrastructure with milky white plastic with 50% and side walls, front and back with mesh antiaphids, in an area of 482.4 m2 (13.4 m × 36 m) in Technological Institute of Conkal, Yucatan, located at Km 16.3 of the Merida-Motul road. Geographical coordinates are 21° 36′ north latitude, 19° 32′ south; 87° 32′ east, 90° 25′ west longitude, at an altitude of 9 meters, according to INEGI Geostatistical Framework (2010). The climate at the experimental site, according to the classification of Köppen modified by Garcia [17], is the Awo (
For the growing crop, two irrigation schemes were employed, a traditional scheme and a fuzzy scheme (Figure 1).

Irrigation schemes.
Traditional irrigation scheme was performed using the following criteria: obtaining data through an Class A evaporation pan, applying data crop coefficient ( calculating crop evapotranspiration (ET), calculating irrigation depth, calculating the volume of water to be applied to replace the water lost by evapotranspiration, calculating irrigation time.
(a) Crop coefficient for habanero pepper (60%). (b) Crop coefficient for habanero pepper (100%).
ETo calculation (reference evapotranspiration) can be estimated from the Class A evaporation pan. The crop coefficient (
On the other hand, fuzzy irrigation schema is proposed. The proposed system consists of four sections, first, measuring and estimating the volume of water lost, subsequently, measuring level categorization through measuring the relative humidity and temperature, further, the integration of the communication system, and finally, a fuzzy mechanism for the estimation of irrigation.
2.1. Measuring and Estimating the Volume of Water
The soil used was characterized to obtain the parameters of Table 2, to identify the moisture levels percentage. With these properties field capacity is obtained, which is the volume of water that is capable of retaining the soil of 1.4 MLCM−2. Once known field capacity, using traditional irrigation scheme, a volume between 70% and 80% range is chosen to make growing Habanero pepper develop properly.
Soil properties.
The proposed system can be integrated into an algorithm (Figure 2 and Algorithm 1).
Initial Value for soilMoisture REPEAT WHILE soilMoisture > 70% READ Analog Port Soil Moisture Sensor Value CALCULATE soilMoisture based on VH400 eq WAIT 10 minutes endWHILE CALL Fuzzy Irrigation Time for Habanero pepper (INPUT: RelativeHumidity, Temperature; OUTPUT: IrrigationTime) WHILE IrrigationTime > 0 WRITE Digital Value for pump activation CALCULATE IrrigationTime countdown endWHILE WRITE Digital Value for pump deactivate UNTIL (true)

Algorithm that incorporated the fuzzy irrigation process.
To measure the volume the VH400-2M sensor is used. This element provides a signal from 0 to 3 V in accordance with soil moisture. It can be seen that the useful limits of the sensor are 50% (Figure 3).

Humidity sensor characterization.
The interpolation of the measured data results in
2.2. Measurement of Relative Humidity and Temperature
The measurement of relative humidity and temperature is performed by a sensor DHT11. This sensor is characterized by the calibrated digital signal. It consists of two resistive sensors (NTC and humidity) and a small 8-bit microcontroller. It can measure the humidity in the range 20%, approximately 95% and the temperature range between 0°C and 50°C. Protocol uses 1-wire communication, and the size is small and has low power consumption and the ability to transmit the signal up to 20 meters away.
2.3. Fuzzy System
2.3.1. Fuzzy Rules
A model for the climate behavior is too complex and the uncertainty is always present so the use of the fuzzy system in order to program an irrigation scheme is proposed. The fuzzy system uses the expert knowledge in form of rules to control the aperture time of the valve and therefor the water supplied. The knowledge base from the expert provides the information necessary to perform the design of the irrigation program sequence, as well as the generation of the rules that are part of the fuzzy inference mechanism (see Table 3).
Rules of the fuzzy system in the growth stage of the crop.
The proposed model employs Mamdani fuzzy mechanism described with MISO type fuzzy rules shown on the system equation
2.3.2. Fuzzy Sets
The linguistic variables to form the fuzzy sets are as follows.
(i) Temperature. Due to the warm air in the shadow house infrastructure is retained, and an important consideration in the cultivation under protected conditions is the temperature factor, because it favors the evaporation of water and has an important impact in the crop. The low technification of this structure only can provide air movement through the roof doors or the antiaphid mesh around of him.
(ii) Relative Humidity. The humidity factor has great influence on the crop. Excess moisture in habanero pepper plants affects its development, so it should not be given water to the crop when the humidity is high; however, when the humidity decreases, it is necessary to supply water to the plant.
(iii) Stages of the Crop. Growth stages (
(iv) Irrigation Time. The output of the fuzzy system is the irrigation time and represents the run time in minutes. The frequency of watering time keeps the amount of water needed to avoid crop water stress.
In order to convert the linguistic variables on fuzzy numbers, this paper proposes the calculation of intermediate values of the linguistic range through the triangular function (4), while outliers are modeled by the Gamma function, left part of the linguistic rang (5), and L function, right part of the linguistic range (6):

Input sets for the variable stage of development.

Input sets for the variable relative humidity.

Input sets for the variable temperature.

Output sets for the variable irrigation time.
2.3.3. Inference Mechanism
The inference mechanism has two basic tasks, determines the relevance and extent of each rule in relation to the current entries (
2.4. Data Acquisition System
The proposed communication system includes a basic structure that can be used in agricultural environments, and this proposal aims to organize the sections of a sensor network and facilitates the selection of technologies required to implement the ZigBee network. The communication system uses IEEE802.15.4 protocol (ZigBee), which was implemented on an Arduino board with XBee Pro module of Maxtream, configured with a PAN ID 3332, a rate of 9600 baud, 8 data bits, and no parity (see Figure 8).

Sensor network.
The structure presented is divided into two sections, an internal, for data collection (sensor network), and an external, that can send information to central computers to store and/or process information. The internal section is composed of elements that collect information from the agricultural parameters of interest, such as temperature, relative humidity, and soil moisture (sensors), the data collected will be sent to devices for processing through the ZigBee protocol, which is used for transmission (end devices). The internal section can be implemented through Arduino boards with Xbee modules. In the transmission of information, the router node will receive the information of the end devices and will be transmitted to the coordinator for central processing, in order to be able to connect to a larger network. The external section is composed of central processing devices sending data to remote nodes via Ethernet, WiFi, mobile devices, or other means that can send information to other locations as shown in Figure 9.

Internal and external sections.
The data acquisition is made with a Duemilanova Arduino, and this platform is programed for a sampling rate of 5 minutes. Each value from the corresponding sensor has an header for identification, as shown in Algorithm 2. These data are linked with the Xbee devices for the transmission to the other Xbee configured like a coordinator.
To get data from the serial port that the Xbee Shield (Coordinator) is sending, we program methods as can be seen in Algorithm 3, and the header of each data frame is defined so that it recognizes and takes the indicated action for storage at the database every time that receives data (Algorithm 4).
{ { { } { }
{ { { } }
3. Results and Discussion
The behavior of the proposed system was supervised from March to May 2013; this corresponds to all cycle of crop. Tables 4(a), 4(b), and 4(c) show the average values acquired from the system. The results obtained are compared with the results of calculations performed for the water loss by evapotranspiration reference (Eto), as shown in the work of Pérez-Gutiérrez et al. [19]. The comparison between fuzzy systems of irrigation and traditional irrigation was performed to validate the data obtained.
(a) Data from the month of March for the cycle of crop. (b) Data from the month of April for the cycle of crop. (c) Data from the month of May for the cycle of crop.
The Etc shows values that are in an interval of 3 mm·day−1 (Figure 10). This range is stable for all the harvest period, if variations of the Etc were more spacious and then should take into account a greater number of variables therefore; by maintaining a controlled environment with the use of the shadow house, we can use a small number of sensors, and in this proposal the use of three of them is enough to estimate the irrigation.

Evapotranspiration values for the crop cycle.
The system showed a deviation of +0.11% in March, −0.39% in April, and +0.51% in May (Figures 11, 12, and 13). The supplied volume by the fuzzy system is compared with the calculated volume, resulting in a small deviation; therefore, we can establish the reliability of the system.

Comparison between traditional irrigation and the fuzzy system (March, 2013).

Comparison between traditional irrigation and the fuzzy system (April 2013).

Comparison between traditional irrigation and the fuzzy system (May 2013).
With the fuzzy system validated, the analysis of the data for each month can be made. As part of the validation sample March 20 is shown. In Figure 14, the frequency of irrigation during the day is graphed.

Irrigation frequency using the fuzzy system (sample of 20 March 2013).
According to the data obtained with respect to the frequency of irrigation, Figure 14 shows that the frequency of irrigation is higher in the time period between 10:30 and 13:00; in this period, we can observe an increase trend in the temperature (Figure 15) and a low relative humidity (Figure 16), indicating a water accumulation in the soil; therefore, a balance between evapotranspiration and the water applied to the crop is generated.

Temperature measurement (sample of 20 March 2013).

Measurement of relative humidity (sample of 20 March 2013).
These results establish the reliability of the proposed system to provide adequate water and maintain optimum moisture level with low relative humidity, to obtain the desirable quality of hbanero pepper production.
In the work of Ortiz et al. [20], the percentage of optimum soil moisture for growing good quality fruits is 60%; the fuzzy system employs the percentage of 70% indicated by the expert so that it is possible to also set the reliability in the final quality of the fruit. The work presented by Pérez-Gutiérrez et al. [19] mentioned that the volume of water applied to 80% of potential evapotranspiration generates the amount of water in the soil to favor a constant process of transpiration, fruit yield, and improvement of water use; this requires a water volume 2223 m3 ha−1; however, the fuzzy system only requires 449.95 m3 ha−1, which represents a saving of 79.8% water.
The proposed system is a better form to schedule irrigation; unlike Yao et al. [16], the objective is to give to the poor communities a form to harvest a high demand product like habanero pepper (with designation of origin) with enough technologic structure. The work of Yao et al. [16] is using a neural network to refine the sprinkle time based on a pattern that is not described in the paper; in a real environment especially in Yucatan, Mexico, the humidity and temperature variables have to be considered, to obtain a quality product and, unlike the work of Yao et al. [16], in this work are taken into account in the fuzzy model and in the expert knowledge. The use of a neural network is not a significant contribution for managing the time of irrigation on a shadow house because there are no other important variables included, and in the Yao et al. [16] proposal only the soil moisture and the error are considered to set the irrigation time.
4. Conclusions
This paper has presented a fuzzy system that manages a wireless irrigation scheme through an algorithm that takes into account the conditions of microclimate of a shadow house used for growing habanero pepper with designation of origin in the state of Yucatan. The water volume consumed, according to the graphic that shows the comparison between the volume of water from the system and the manual or traditional volume, gives us a difference of 79.8% over the best result shown in Pérez-Gutiérrez et al. [19], which shows that the system can efficiently manage water and that incorporation of the expert knowledge in fuzzy rules allows irrigation scheme without using the pan evaporation or calculating the volume associated with irrigation, as they can be automatically supplied without the crop being adversely affected in its development. Saving water is about 152482.3 m3 for a crop of 1000 plants in an 85-day cycle, causing transplantation at the 30th day. The microclimate conditions generated by the infrastructure of shadow house are not exploited by the lack of modernization, that is, a producer who does not have the ability to use technology to irrigate their crops, generally only considered during the morning or afternoon, which does not guarantee the product quality, since plants could fall in either water stress or excess moisture. However, the proposed system allows for irrigation supply data from three common sensors (temperature, relative humidity, and soil moisture), allowing similarly for reducing infrastructure costs.
Footnotes
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
The authors gratefully acknowledge the support of the Technological Institute of Conkal of Mexico and Prometeo Project of the Secretariat for Higher Education, Science, Technology and Innovation of the Republic of Ecuador and CYTED network 514RT0486.
