Arduino controlled water pump

You can estimate the darkness of the clouds using a light sensor, if you also take the time of day into account.