The output of the sensor to the arduino analog pin A0 was resistance. The resistance to flow of current between the sensor probes changes with soil moisture level and soil type. The current passing through the sensor probes (Iout) for different soils and different soil moisture levels was calculated as shown below