The thesis considers independent operation of a greenhouse and controling its circumstances necessary for sustaining life, with as little as possible energy, water and time consumption. A lot of time during greenhouse maintenance is spent for watering, therefore watering automation is the focus of the thesis. A solution is proposed using automatic control of a drip irrigation system with an Arduino microcontroller, which collects data from various sensors and controls a solenoid valve. Collected parameters and watering history are shown on an LCD monitor at the entrance to the greenhouse. Energy independence of the greenhouse is established with the usage of low-energy-consumption components and solar power supply.