Measuring soil moisture