The project aims to automate a greenhouse by designing a system to monitor and control temperature, humidity and irrigation levels. The climate imbalance and the irrational use of drinking water are the greatest challenges for the agricultural sector. The system consists of micro-controlled equipment that reads the environmental parameters of temperature and relative humidity of the greenhouse, keeping them at the predetermined values, in addition to reusing rainwater by means of a purifier. As control elements for the increase of the temperature, lamps are used and for the decrease of the temperature a gate with extractors in the upper part of the greenhouse. To control the relative humidity, sprinkler irrigation is used and to decrease it, the extractors at the back of the greenhouse. The water used for irrigation comes from rain. At the base of the pot are placed the sponges, which have the function of separating the soil from the water and letting it pass. Once filtered it falls into a drum where the process of purification of the rainwater begins and when the climatic conditions inside the greenhouse are fulfilled the watering system will be activated. The research approach was experimental and applied.