The science of perfect watering