A Nonlinear Fuzzy Controller Design using Lyapunov Functions for an Intelligent Greenhouse Management in Agriculture

The importance of agronomists in large-scale production of food crops under considerate environmental weather conditions cannot be overemphasized. However, emerging global warming is a threat to food security due to its effect on soil depletion and ecosystem degradation. In this work, the design of the proposed intelligent context is to observe, model and simulate greenhouse control system activity towards the management of the farm crop growth as the affected salient environmental parameters. Characteristically, temperature and humidity are the major factors that determine the crop yield in a greenhouse but the case of a dry air environment or beyond 300C−350C of high air humidity will affect crop growth and productivity. A Mamdani technique of fuzzy logic controller with non-linear consequent is used for intelligent greenhouse design in the LABVIEW virtual environment. This approach is used to mimic the human thought process in the system control by setting some logical rules that guide the greenhouse functions. For the system stabilization achievement, a direct method of Lyapunov functions was proposed. The simulation model result shows that, the average temperature of 18.50C and humidity 65% is achieved for a decent environment of crop growth and development during winter. However, the average temperature and humidity achieved during summer is 27.50C&70% respectively. For every season that is beyond 30.50Cand75% of temperature and humidity will require automation of roof opening and water spilled.


Introduction
Agriculture is an important aspect of any nation's development which usually requires appropriate seasoning irrigation and fertilization to produce a quantity of food products [1]. The seasoning control application of fertigation (fertilizer and irrigation) techniques has proven efficient in plant growth, development, and yield large crop production [2]. Computers and electronics play a significance role in the development and mechanization of agricultural products through the recent applications of ubiquitous technology of Internet of Things (IoT). This advancement and dynamic methods of control theories application helps improving the agricultural equipment (mechanization) and the processes. The recent integration of artificial intelligence (AI) and computational intelligence (CI) into the agromechanical machine and mechatronics system (embedded sensors and robotic) shaped the agricultural technology and their commercialization.
So, the studies have indicated a strong link between agriculture and economic growth as the backbone of national sources of income and commercial development [3]. The increasing demand in food consumption nationwide as resulting from increased daily population explosion that necessitated the provision of precision agriculture monitoring [4] and to ease the farming process as well as abnormalities in the farm environment. Although, farming is an essential means of increasing food production, recently its cultivation is decreasing and becoming inversely proportional to the rising population. This is partly due to the phenomenon of global warming [5]. As a result of changes in climate conditions and its threat of conservatory, the need arises for an agricultural development control system to manage this condition for high yield of crop production [6][7][8].
The changes in climate condition increases the tropical storm intensity and frequency due to rising temperatures and climate pattern that change mutually. Whereas, the warming of temperatures ocean and sea levels rising escalate the disaster storms growth with excess heat trapped in the atmosphere. It is observed that dissolving of heat energy and excess of carbon dioxide gas has significant damage on the ocean. Like oceanic acidification that affect reproduction and formation of animal shells, oceanic heat waves affect coral reefs with the frustration of fish migration, and oceanic dead zones created as a result of deoxygenation process [9,10].
Consequently, there is a need to prevent and manage common emission releasing into the atmosphere with effect on agricultural crop growth and environmental degradation effect. This threat of emission releasing contributes immensely to the effect of climate change which affects the successful cultivation of farm crops [11]. The United Nations' World Meteorological Order (WMO) confirmed that the world planet is about 1.1°C warmer, and is forecasting an increase from 4-5°C towards end of the century. Others factors of agronomy-house sustenance depend on the environmental weather condition which includes temperature, humidity, winds, light intensity, and solar radiation. The statistical overview of primary sources of greenhouse gas emission is given in Figure 1, which include industry, transportation, building, agriculture, forestry, electricity and heat production [12]. While the sources of releasing those gases, are Methane (NH 4 ), Nitrous Oxide (NO), and Carbon Dioxide (CO) from the industrial processes, fossil fuel, bush burning, forestry, sewage disposal and other land use [13].
A Greenhouse is a controlled place where plants are grown under control conditions of ambient temperature, humidity, water vapor, light intensity, and carbon (iv) oxide [14]. The environmental conditions for greenhouses can be varied according to the plants need to get most out of the plants and for high efficiency. Since the environmental conditions of the greenhouse need to be adjusted for optimal growth, the size and cost of labor increase proportionally to the size of the greenhouse and the number of plants [15,16]. A greenhouse is a structure designed with glass walls or transparent material and a glass/translucent roof used to grow food crops and plant cultivation (such as tomatoes and tropical flowers under controlled environmental conditions [17,18]. The efficient management and monitoring of greenhouse plants condition require the integration of an artificial intelligence system (AI) or automated control system (ACS) based on context-aware software design (CASD). Therefore, a Greenhouse Development Rights (GDR) framework is proposed in [19] to safeguards the right of development as a possible global solution to the climate change challenges. It is shown that GDR approach is an international context for (China and the USA) which provide funding for the development mechanism of a greenhouse as an approach to address global climate change challenges. The GDR is a foundation for future evolution and industrialized developed countries. In another approach of control and keeping hothouse cool is the development of a smart controller for grid stabilization using optoelectronic system [20].
This book chapter contribution aims at presenting an intelligent greenhouse control based on the non-linear consequent fuzzy logic controller using LabVIEW for agricultural technology. The system helps to monitoring greenhouse parameters and acts based on the specified fuzzy rules to control the system environmental condition without or with little human intervention. Thus, there is a need for an intelligent greenhouse control system in agricultural technology that can reduce human labor costs, increase productivity, and reduce human intervention.

Related works
The global warming crisis necessitated the development of a real-time monitoring and control system for managing change in environmental temperature conditions. This temperature change plays an important role in the soil contents of farm crops. Therefore, the use of computer technology approach (such as embedded systems and AI) has been newly adopted in realizing the design of automation control and monitoring system of ambient temperature in greenhouse management. The greenhouse control system is developed using LabVIEW simulation software for data collection and analysis of conservation in [21]. The work mainly focuses on adjusting the temperature environment using a thermostat and sensor to detect and control the hotness of the greenhouse. The process was simulated and implemented in the developing system platform of Labview software. An optimized sprinkler irrigation system for predicting use of budding land based on soil features using fuzzy logic decision approach in [22]. The significance of adopting this fuzzy logic in land evaluation is a suitable approach for the continuous nature of soil properties and provide an accurate distribution index for predicting land use.
An optimized method of cultivation in the greenhouse automated system with smart environments using an embedded system development approach in [23]. This industrial automated greenhouse model is developed for plant experimentation at

Title Strength Limitation
Design of an Intelligent Management System for Agricultural greenhouses based on the Internet of Things [24].
Successfully developed a remote monitoring system for greenhouses using ZigBee protocols. Users can remotely control and manage greenhouse parameters such as temperature and humidity.
Absence of an intelligent technique. Although the control method is remote, it is also manual.
Smart greenhouse monitoring using Internet of Things [25].
A system capable of remotely monitoring greenhouse parameters via a web application.
No intelligent technique presents. Lack of control mechanism.
Research on the control system of the intelligent greenhouse of IoT based on ZigBee [26].
Successfully developed a ZigBee based system capable of remotely monitoring and controlling greenhouse parameters Absence of intelligent technique. Control is manual.
Internet of Things based smart greenhouse: remote monitoring and automatic control [27].
Implemented a smart greenhouse using GSM/GPRS for remotely monitoring and controlling greenhouse parameters. The system is capable of automatically controlling the parameters if they are out of the specified range.
Absence of an intelligent technique for the control of parameters.
Intelligent greenhouse design based on Internet of Things (IoT) [28].
Developed an intelligent greenhouse using Cloud service for remotely monitoring greenhouse variables. The system is also capable of automatically controlling the parameters if they fall below or above specified values.
Absence of intelligent control technique.
Smart greenhouse using IoT and cloud computing [16].
Successfully developed a monitoring interface for greenhouse parameters using IoT and cloud computing Absence of intelligence and control technique.
Design and implementation of a smart greenhouse [18].
Successfully developed a smart greenhouse control system to monitor and control the parameters in a tomato farm. The system automatically controlled actuators to regulate greenhouse variables.
Absence of intelligent technique.
Intelligent Monitoring Device for Agricultural Greenhouse Using IoT [29].
The author proposes a monitoring system for greenhouses using wireless sensor networks and IoT.
The proposed system incorporates a microcontroller that transmits information that can be monitored with an Android Application.
Absence of intelligent technique. No control technique specified. the University of Alicante to control air-conditioning, soil condition, and irrigation in the system. The optimization services integrated into this system model designed help in the detection and prediction of agricultural production of smart environments. But the optimized smart environment greenhouse does not consider controlling the system conditions during rainfall, summer, and winter. Other authors that contribute to the development of automated and intelligence-based greenhouse control and monitoring system is analyzed in Table 1.
From these literatures, it is observed that the limitation is on the part of intelligence incorporated into the system with linearized fuzzy model improvement. Also, the season management of crop cultivated area in the greenhouse with automatic control technique are not studied. Hence, this book chapter aims to fill those gaps by implementing a non-linear consequent fuzzy logic controller system for the decision-making process and automatic control of the greenhouse system with an approach of context-aware software design ontology. This book chapter is organized into 5 sections. The introductory part discussed the general background of study in Section 1, Section 2 presented the related works. The research methodology is presented in Section 3, while sub-Section 3.1 mathematical modeling of the greenhouse control system in sub-Section 3.1, sub-Section 3.2 presented a linearize and non-linear consequent fuzzy controller design for greenhouse control. Sub-Section 3.3 contained Lyapunov function for stabilization of non-linear consequent fuzzy controller. Sub-Section 3.4 presented simulation and implementation of nonlinear consequent fuzzy controller based-greenhouse design in LabVIEW. The results and discussion are presented in Section 4, sub-Section 4.1 contained Intelligent greenhouse management based nonlinear control simulation results. Sub-Section 4.2 presented simulation results of a Lyapunov stability of nonlinear control system. Section 5 gives the conclusion and recommendations for future works.

Methodology
Context-aware systems are software systems designed with the ability to sense (sensor) and adapt to the environmental conditions for the solution required to the problem design [30,31] through a fuzzy controller. This design involves determining what the system needs to sense, make adaptations, and respond to sensor information. It requires sensing temperature and humidity, and then adapt to the environmental condition for the greenhouse system control and management using nonlinear fuzzy controller system with direct method of Lyapunov functions to achieved stabilization. The system modeling and design need a focus value or parameter to influence the designed value such that it can sense the elements and manipulate them in case of irregularities. So that it can make the element relevant to the purpose of the design and the designer focus. An overview of the approach design for an intelligent greenhouse control system includes practical problem identification, insight to the context, elements components required in the sense and adaptation, and logical reasoning rules for information as illustrated in Figure 2.
The fuzzy logic controller architecture [32] consisting of crisp input rules, Fuzzification (knowledge-based or linguistic rules), fuzzy inference engine (logic rules), and Defuzzification (output crisp values). The input of a fuzzy control system parameter can be adjusted to improve the system (fuzzy mechanism) performance using the Eqs. (1) and (2).
where, θ n ð Þ is define as a set of input parameter to adjust at time t, T n and P n is the parameter collected at a time T n .
The non-homogeneity consequent of the fuzzy logic controller system technique is adopted in the design to sense the greenhouse environment and adapted for a unique solution of a design problem. A visual graphical programming systemdesign platform and software development environment called Laboratory Virtual Instrument Engineering Workbench (LabVIEW) was used to achieve the contextdesign. It is very efficient and commonly used in engineering as a context-aware system design for data acquisition, instrument control, and industrial automation system. It is a multi-threading and multiprocessing hardware system that is automatically engaged by the in-built scheduler during the execution flow structure (nodes) of a graphical block diagram. The connection wires will propagate the variables and execute the process immediately all its input data reachable.
This system is used to control the temperature and humidity of the greenhouse system using a non-homogeneity control system. The temperature and humidity inputs parameter are set and the system keeps both values constant regardless of the outside temperature of the controlled system. This is achieved using the combination technique of the linearized system with non-linear fuzzy, and adopt Lyapunov function to achieve system stability in the model. This model helps in controlling the opening greenhouse roof for rainfall and sunshine, and/or by turning on the sprinkler to reduce the temperature as presented in the algorithm of decision-making process of the system is achieved using a combination technique of linear and non-linear approach consequent of the fuzzy logic controller system. The sub-system irrigation and ventilation classification help the agronomist to manage the setpoints of the control input variables. This irrigation-ventilation model is an intelligence unit that is used for the senses and responds to immediate action by introducing the prediction and optimization facilities that are supervised by the agronomist as presented in Figure 3.
The calories required for heating the air in the greenhouse is calculated as expressed in Eq. (3). For the determining value of temperature, it requires average heat of 0.30Kcal to achieve a one-meter cube of air. It is observing that 1 kW heat can produce 860Kcal, and a heat source of 30 W can produce 25.8Kcal heat per hour, and equivalent to 0.43Kcal heat per minute [33].
where ∅ is the heat, M is the mass,  is the heating temperature (0.24 Kcal/kg), ℓℸ is the difference in temperature.

Mathematical modeling of greenhouse control system
The behavior of the greenhouse microclimate is dynamic and combinations of physical processes involve mass balance and energy transfer. The physical processes involved are used in estimating the greenhouse climate. The amount of energy leaving the greenhouse can be calculated as expressed in Eqs. (4) and (5).
where, E total is the total energy balance (W), E gain is the amount of energy entering the greenhouse (W), E loss is the amount of energy leaving the greenhouse (W), E k is heat loss due to conductive heat loss (W), E v is the heat transfer due to ventilation (W), E inf is heat transfer due to infiltration (W), E r is heat transfer due to the longwave radiation and E cond is heat loss due to condensation (W).
The conductive loss encompasses all the heat transfers through the greenhouse cover from the internal to the external air, conductive heat transfer through the covering material and radiative heat transfer can be expressed as in Eq. (6). The thermal wave radiation exchange from the interior greenhouse to outside can be calculated as given in the non-linear Boltzmann relation in Eq. (7) and Eq. (8). Therefore, the ventilation of heat lost in the greenhouse is proportional to the rate of air exchange and the differences occur between the inside and outside air temperature [34], and the loss can be determined as in Eq. (9).
where λ o is outside air temperature (K), λ i is inside air temperature (K), h is the conductive heat transfer coefficient (W/m 2 ), A is the area of greenhouse cover (m 2 ), Q r is radiation loss, ε is the combining emissivity between the cover and sky, σ is Boltzmann constant, ρ is air density (kg/m 3 ), C is the specific heat of air (J/kg K), G is airflow due to ventilation (m 3 /s), w is the wind speed (m/s), r v is percent of the ventilator opening, k v is the slope of the curve showing the ventilation flux divided by wind speed variation and A is area of the ventilator (m 2 ).
The heat energy is transfer within the intelligent greenhouse system as a result of infiltration of energy loss which is due to the exchange air through cracks occurs in the greenhouse and is considered. Since the infiltration rate is based on the volume of water vapor changed per unit cover area (roof and walls). This volume of water vapor is directly proportional to the wind velocity and the temperature difference from both inside to outside the greenhouse can be determined as in Eq. (10). Then, the sources of heat gain from the greenhouse model include solar radiation heat which is the most determinant of heat gain by the intelligent greenhouse system during crop growing and system heating from the environment [35]. So, the energy of the greenhouse can be calculated as in Eq. (11), the heat transfer from tubes to the greenhouse environment is expressed as in Eq. (12) and the internal temperature increases are within the range of (0.3-0.7) which 0.3 was chosen.
where, H inf is the infiltration heat loss (W), λ i is the temperature inside the greenhouse (K), λ o is the outside temperature (K) of a greenhouse, V is greenhouse volume (m 3 ), and N is the number of air changes per hour (h À1 ), E r is solar energy radiate into the greenhouse environment (W), I is total external solar energy falling on a horizontal surface of the greenhouse (W/m 2 ), A is an area of greenhouse floor (m 2 ), τ is radiation light transmission to the greenhouse cover, γ is constant of the proportion of solar radiation that radiates into the greenhouse. Q hs is heat gain from the heating system (W), m is the heating water flow rate (kg/s); λ ωi is heating water inlet temperature (°C), λ ω0 is heating water outlet temperature (°C) and C p is the specific heat capacity of water (J/kg K).

A linearize and non-linear consequent fuzzy controller design for greenhouse management
A closed-loop or called feedback controller transfer function is adopted since the output of the intelligent control system φ t ð Þ is fed back into the system through a sensory measurement device (sensor) γ. The comparison is for reference value τ t ð Þ, where the controller system α takes the error ε (difference) between the reference point or set values and the output to adjust the inputs μ feedback to the system under control β. From the perspective of implementation of the controller with a linear approach and time-invariant, the elements of the transfer function α s ð Þ, β s ð Þ, and γ s ð Þ do not depend on time where α is controller, β is the system under controller (plant), and sensor measurement denotes γ [36][37][38].
We can analyze the systems using the Laplace transform on the variables as expressed in Eqs. (13) By solving φ s ð Þ in terms of τ s ð Þ can be expressed as given in Equation The closed-loop or feedback transfer function of the greenhouse control system is expressed as ℵ s ð Þ in Eq. (17), where the numerator is identified as open-loop (forward gain) from τ input parameter to φ output values, and the denominator is a feedback loop that goes around the system called loop gain. So, if β s ð Þα s ð Þ j j≫ 1, that is, it has a standard model with each value of s, and if γ s ð Þ j j≈ 1, then φ s ð Þ is approximately equal to τ s ð Þ and the output system is close to the reference input.
The flowchart technique for a linearized and non-linear fuzzy model for the optimization function of the greenhouse control and management model is illustrated in Figure 4. This mechanism operates as a reference model to the non-linear system and is connected in parallel in such a way that the linear system passes across the non-linear for better stability.
The state-space model for the non-linear fuzzy controller is given in Eq. (18), which increases the fuzzy rules quantity exponentially with non-linearities measures. The delayed in the state-space model for the fuzzy controller is given in Eq. (19). Where x t ð Þ is the state vector of x t ð Þ ∈ R n x , υ t ð Þ is an input vector for υ t ð Þ ∈ R n υ , s is the number of rules, ω t ð Þ is the available premise vector, δ k ω ð Þ is the membership function, α k and β k are the linear models, and the convex sum is given as: δi ω This state-space model for the fuzzy system can be expanded to determined the time delay dependent as given in equation, where τ t ð Þ is the delay time dependent, and δ m ω t À τ t ð ÞÞ ð Þ ð is the delay states that dependent on fuzzy membership functions. x The notation of τ t ð Þ ≔ τ can be expressed as Eq. (20), and the closed-loop fuzzy model for non-linear time-dependent is in Eqs. (21) and (22). This is to reduce the number of fuzzy rules and to serve the purpose of measured-state and non-linearities unmeasured-state [34,39,40].
The x t À τ ð Þis the state vector for time-delayed, υ t À τ ð Þis an input vector timedelayed, G is the system matrix, x(t) is a function of linear combination for each input to the model, and ψ ξx t ð Þ ð Þis a vector function. The boundary condition for the existence of vector function in the model can be expressed as

Lyapunov function for stabilization of non-linear consequent fuzzy controller based-greenhouse
For the stabilization and dynamical nature of the system, a Lyapunov non-linear function (LNF) is adopted to operate the system model as a linear with a limited range of function at every region. This approach of LNF helps the model to present auxiliary nonlinear feedback which can be operated as linear for control design purposes. Since a Lyapunov direct method of stability criterion for a linear system can be defined, suppose u = 0, and the exist two-point p > 0 and q > 0. Therefore, a linear system is asymptotically stable at the beginning for any given symmetric that existed given a unique solution that used for stability analysis as given in Eq. (24), But the choice of q can be made arbitrarily which is mostly set as q = 1, an identity matrix p for all successive principal minors of p is positive using Sylvester theorem as expressed in Eq. (25). , P 11 > 0: Therefore Δ P ½ > 0 (25) However, the parameters for the fuzzy model-dependent can be given as in Eq. (26).
The associated weighting function of normalized fuzzy with the ith system are calculated through the degree of fuzzy membership functions θ 1 σ ð Þ and premise variable with a closed interval of [0, 1] which must satisfy these properties in Eq. (27); The state-space matrices function can be replaced in the derivation with a new introduce operator as expressed (Eqs. (28) and (29)), where α, P can be replaced with ω, and the subscript μ refers to all signals (x, d, εÞ and η μ is the dimension of signal μ. The notation in Eq. (29) can be expressed as given in Eq. (30) using fuzzy weighting membership functions properties.
Therefore, the Lyapunov fuzzy model function for the system stability is given From the expression given in Eqs. (27)- (29), these symbolizations can be achieved as given in Eq. (34), when the fundamental matrix will be represented as X, while Y is the out factor, and Z ≔ I nσ A T θ ð Þ Â Ã T . Then, Therefore, the condition of Lyapunov stability expression in Eq. (34) is comparable with YZ T X YZ ð Þ< 0. So, the matrix YZ can be reform as given in Eq. (35).
But the variable X which depends on the fuzzy weighing function derivative can be solved using conservatism of LMI-based stabilization conditions as in Eq. (36). The constraint notation is the stability of Lyapunov fuzzy weighing function is guaranteed by the expression given in Eq. (37). where For the fuzzy system controller to be asymptotically stabilized, then it is given The Lyapunov fuzzy system function is given as ∀ ¼ ϰ T Q À1 θ ð Þϰ and the system controller can be expressed as u ¼ U θ ð ÞQ À1 θ ð Þx, and the condition for stabilization d = 0 can be finally described as in Eq. (38) with a similar derivation of LMI-based stabilization condition [41,42].

Implementation of non-linear consequent fuzzy controller based-greenhouse design in LabVIEW
The Fuzzy Inference System (FIS) consists of two inputs (temperature and humidity) and two outputs (electric roof and water spills). A Mamdani fuzzy logic technique was implemented in this study due to its wide acceptance and suitability for this application. The triangular membership functions were implemented for all inputs and outputs. The input 'Temperature' had membership function values of 'cold', 'normal', and 'warm', while the input 'Humidity' membership function had values of 'dry', 'normal', and 'wet'. As for the outputs, the membership function for 'Electric Roof' signified the level of the opening for the roof. The output membership function parameter is 'closed', semi-open', and 'open'. The output 'Water Spills' represented the amount of water to be spilled by the sprinkler. This parameter has membership function values of 'low', 'moderate', and 'more'. Besides, the greenhouse control system was designed to consider each of the four major seasons (spring, summer, fall, and winter). As a result of this weather variation, each season has different membership function values for the weather conditions. The block diagram is illustrated in Figure 5.

Simulation results of an intelligent greenhouse management based nonlinear control
The intelligent greenhouse control system was designed and simulated in LabVIEW using non-linear consequent for the controller. Two major interface environments were used to achieve the design of the system, the front panel, and the block diagram interfaces. The LabVIEW environment also provides a tool for fuzzy logic designs and the fuzzy logic designer has three interfaces, namely: Variables, Rules, and Test System. These interfaces respectively give the user an interface to specify the inputs and outputs of the system, provide the IF-THEN rules, and test the system to analyze the performance. In LabVIEW, an algorithm was implemented for the intelligent control of the greenhouse. This algorithm was implemented using a block diagram for the simulation of a nonlinear based intelligent greenhouse control system.
The interface has a knob that can be used to select a particular season. Also, the temperature and humidity can be altered to view various results. Selecting different values for temperature and humidity result in different outputs for roof opening and the water spills through system actuators. These outputs are determined by the fuzzy logic controller. Depending on the season selected, the outputs of the FIS will differ even with the same inputs. This is mainly because each season uses a different membership function for its decision-making. Considering these scenarios, experiments were conducted for each of the four seasons with the same input values. This was done to analyze varying results of the seasons and to examine the effectiveness of the control system. During this summer season, the dynamic sensor deployed to the environment is temperature and moisture sensors for monitoring the temperature and humidity of the greenhouse at constant temperature input of 25°C and the relative humidity of 85%. The membership function for temperature has three stages cold, normal, warm. It observed that temperature starts to normalizes from 22.5-32.5 degrees celcius to get constant temperature input. Therefore, the roof is open at 50%, and water spilled at the relative humidity of 40.1%. The simulation of fuzzy controller based intelligent greenhouse during the summer season was presented in Figure 6, and its fuzzy membership functions. The surface view of the dynamic system testing is presented in Figure 7.
In this work, a knob is designed to mimic the outside environment based on four possible weather conditions in a year (summer, spring, rainfall, winter). The constant temperature parameter set is 25°C and humidity at 65%. The membership function for temperature has three stages cold, normal, warm. During the summer, the temperature starts to normalize from 22.5-32.5 degrees Celsius to get a constant temperature value. Then, from the understanding of physics, an increase in temperature reduces humidity and relatively controls the sprinkler to turn ON and cause the roof opening. All these calculations are handled logically by the fuzzy logic controller in the software-context based on the input and possible output variables. Tables 3-6 presented the results obtained for summer, spring, winter, and fall seasons respectively, and the graphical representation of the results obtained is in Figures 8-11.   Table 3.
Results for the summer season. In this context, a knob is designed to mimic the outside environment based on four possible weather conditions in a year (summer, spring, rainfall, winter). The constant temperature parameter set is 25°C and humidity at 65%. The membership function for temperature has three stages cold, normal, warm. During the summer, the temperature starts to normalize from 22.5-32.5 degrees Celsius to get constant temperature value. Then, from the understanding of physics an increase in temperature reduces humidity and relatively controls the sprinkler to turn ON and the cause the roof opening. All these calculations are handled logically by the fuzzy Series Temperature (°C) Humidity (%) Water sprinkler flow (%) Electric roof opening (%)  Table 6.
Results for rainfall season. logic controller in the software-context based on the input and possible output variables.
The results for each season depending on different environmental and season behavior which is processed by non-linear consequent fuzzy logic controller. This is achieved using different membership functions for each season. Since each season has its unique weather conditions and temperature requirements. The variation   based on the season's implementation is to ensure an effective performance of controller during the different seasons. Furthermore, it can be observed from the results that irrespective of the season, higher temperatures lead to wide roof openings and high-water spill levels. This is done to reduce the temperature to the level specified by the farming environs. Also, low temperatures result in no roof openings or water spillage, since there is no need to lower the temperature further. But, during the summer season, the average temperature and humidity required is 27:5 0 C&65% À Á respectively. For every season that beyond 30:5 0 C&75% À Á of temperature and humidity will require automation of roof opening and water spilled.

Simulation results of a Lyapunov stability of nonlinear control system
The nonlinear fuzzy controller system for managing intelligent greenhouse was simulated in the MATLAB environment to achieved the stabilization of linearizing system, when its asymptotically stable using Lyapunov function. From the statespace of fuzzy model given in Eqs. (18), (25) and (26), the characteristics equation is derived as ℓı À Å , and the description is given [42]. If f ℓ, ℷ ð Þ ¼ ℓı À Å , the system is universal and stable since the eigenvalues are positioned at the left-half side. Also, the eigenvalues ℷ ð Þ follow a trend when plotted a multi-dimensional of f ℓ, ℷ ð Þas illustrated in Figure 12. This eigenvalue ℷ ð Þ help to achieved a steady with better dynamic performances, good compensation quality and fast responses of the system as it moves closer to the trend of red spotted lines. The system controller undergoes processes to achieve stabilization when the eigenvalue is ℷ ¼ À1 * 10 2 at periods of (0-0.50) seconds using Fast Fourier Transform (FFT) analysis.
Therefore, if the polynomial coefficient is both positive then equilibrium point is stable when ℊ > 1, else is unstable when at least one eigenvalue ℊ < 1.
The simulation results for the system control pathways for nonlinear system using Lyapunov function with given stability conditions ℊ ¼ 2, ℊ ¼ 3, ℊ ¼ 4, and ℊ ¼ 5 are shown in Figure 13.

Conclusions
The greenhouse control system was implemented using the Fuzzy Logic Controller design with non-linear consequent as an intelligence in the decision-making process of the system. The membership functions include two inputs (temperature and humidity) and two outputs (roof opening and water spills). The intelligent greenhouse system was designed to cater for each of the four major seasons (summer, spring, winter, and rainfall) and this was achieved by implementing different membership functions for each season. The development of an intelligent greenhouse control system was simulated and implemented in LabVIEW. These technologies, FLC and Virtual Instrumentation in LabVIEW are widely adopted to enable computing and communication to migrate out of the gray box into ordinary objects (standalone system). However, it is significant that building of an intelligent systems to model human activities or interactions is important to the agricultural technology development. The results obtained show varying performances for each season to cater for different weather conditions. Future research will be considered incorporating a heating mechanism to raise the temperature for varying conditions and hybrid intelligent techniques using optimization technique for a better system performance.