In this work, the design and implementation of a system to control a greenhouse is presented. This system is a control of the temperature, relative humidity, soil moisture and lighting variables inside a greenhouse. With these variables, a system is configured for a specific type of crops, using sensors, a micro controller Arduino and actuators selected by the user. The system allows maintaining the variables in an appropriate way.