Green house intelligent control system

Green house intelligent control system is designed to protect the plants from more cool and hot weather and additional control system is included to save power by making fans and lights automatically turn on and off with the help of intelligent control system. In this project, the intelligent control system is developed using microcontroller and sensors. Green house system has a very important use now a days in the agriculture field.Some plants need the specific amount of water for their proper growth and more  productivity, therefore farmer should provide them the proper quantity of water. But it’s difficult for the farmer to get a estimation for quantity of moisture in soil. But in this project moisture sensor is used to to provide this facility with a intelligent control system.

Block diagram below shows the main functionality of green house intelligent control system. Four sensors are used to measure different parameters of green house system which includes temperature sensor, light sensor, humidity sensor, moisture sensor. Four relays are used to control four respective loads as given below:

LM35 Temperature sensor :

When temperature becomes greater than 25 degree, respective relay become energize to operate the fan and when temperature becomes lower than 20-degree relay turn off the fan by getting control signals from microcontroller. PIC16F877A microcontroller analog to digital converter module is used to read temperature value and to operate relay which in turn operate the fan. To know more about temperature sensor and its working, go through the following article :

Digital temperature sensor using pic microcontroller
Light sensor :

Light dependent resistor is used as a light sensor. LDR is kind of variable resistor which resistance changes with the change in light intensity. So LDR resistance is converted into intensity of light by using LDR resistance and intensity of light formula. PIC16F877A microcontroller is used to measure intensity of light. When intensity of light fall under a certain limit, microcontroller provide signal to relay to turn on light and when intensity of light raise upto a certain limit , microcontroller provide signal to relay to turn off fan. So light sensor is used to add automatic light switching functionality in the green house system, if you don’t have much money to afford a gardener, then you can use green house intelligent control system to make your green house self-operating.

HS1101 Humidity sensor :

Humidity sensor is used to check level of moisture in air Because greater or less humidity level in air can also effect growth of plants. Humidity sensor HS1101 is used to measure level of moisture in air. HS1101 is a capacitative type humidity sensor, So additional circuit is used to convert change in capacitance of humidity sensor into frequency and frequency is measured with the help of microcontroller. Measured frequency is converted back into humidity using a algorithm in microcontroller programming. To know more about humidity sensor and its working, I suggest you to go through following article :

Digital humidity sensor using pic microcontroller 

If humidity becomes greater than a specified limit, microcontroller gives a signal to respective relay to turn on sprinter which is used to maintain a humidity level in the air and when humidity level comes back to a normal limit, microcontroller gives a signal to respective relay to turn off sprinter.

Moisture sensor :

Moisture sensor is used to measure level in soil. A wire strip is used to measure moisture of soil. Wire strip has a specific resistance at specific moisture, but when moisture increases, the resistance of wire strip starts decreasing and similarly when moisture decreases, resistance become higher. PIC16F877A used to measure moisture level and to turn on and off water pump with the help of relay.

Block diagram of complete project is shown below:

block digram of green house system

block digram of green house system

Simulation :

For simulation purpose, I have connected four LED’s instead of real load to check project working and code. LCD is used to display digital values of temperature, light , humidity and moisture. LCD also display the status of devices either they are on or off. As shown in the figure below.

simualtion of green house system

simulation of green house system

Simulation diagram with status of devices :
Simulation diagram with status of devices

Simulation diagram with status of devices

In simulation I have used variable resistor for wire strip and pulse having different frequencies for humidity sensor.

In above circuit diagrams :

L : for light

S : Sprint

F : for fan

P : for pump

T : for temperature

H : for humidity

M : for moisture

 Complete circuit diagram :

Complete circuit diagrams of green house intelligent control system and sensors are shown below :

schematic of green house system

schematic of green house system

In above schematic of green house system, blue arrow shows connection for senors and back arrow shows relay and lcd connection point.

PCB diagram of schematic of green house system :
PCB diagram of schematic of green house system

PCB diagram of schematic of green house system

Applications and future advancements :

So this project can be easily used in any green house system to make to self-operated and automatic control of devices. You can also add extra functionality in this project by adding wireless communication to send values of sensors and status of devices to someone which is not at remote location.

Code :

you can purchase complete code from me by contacting me  at  🙂


  1. josé August 15, 2014
    • BILAL Malik August 15, 2014
      • julio cesar August 16, 2014
  2. idreesmuhamed October 9, 2014
  3. M Saqib October 18, 2014
  4. QAMAR SHAIKH October 19, 2014
  5. umi farina November 10, 2014
  6. Henry November 25, 2014
  7. Henry November 25, 2014
  8. jayr November 30, 2014
  9. atif mehmood December 3, 2014
  10. flexo December 11, 2014
  11. smwal December 30, 2014
  12. Javier H January 6, 2015
  13. smwal January 11, 2015
  14. Jony Nightfly January 13, 2015
  15. joynal January 20, 2015
  16. Muremeri E.M. January 20, 2015
  17. najye January 25, 2015
  18. faiz February 6, 2015
  19. smwal February 13, 2015
  20. faiz May 10, 2015
  21. omar May 10, 2015
  22. hailegebrel nigussie June 11, 2015
  23. hailegebrel June 14, 2015
  24. ku_az July 31, 2015
  25. Ei Ei Aung October 23, 2015
  26. adugna January 8, 2016
  27. sumit jagtap January 28, 2016
  28. Taps August 14, 2016
  29. jeevan March 18, 2017
  30. jeevan March 22, 2017
  31. tukugu akhil December 13, 2017
  32. sampath December 22, 2017
    • sampath December 22, 2017

Add Comment

Learn ESP32 programming with Arduino IDE with 73% DISCOUNT