Estimating soil moisture for irrigation