Figure 2. In this example the controller closes the switch allowing irrigation because of dry conditions in the soil around the soil moisture sensor.