Automatic watering based on soil moisture. Automatic UV light control based on ambient light levels. LED indicator for watering status. LCD display for sensor readings. Connect the components ...
This sketch will pump water twice a day. A sensor detects wheter there is water in the barrel. Arduino will not start the pump, when the barrel is empty.