an irrigation system comprises sprinkler heads with an electrically configurable spray pattern , moisture sensors , and a controller . based upon input signals from the moisture sensors , the controller dynamically configures the spray pattern of the sprinkler head to allow more water to fall on areas that need to be watered and less water to fall on areas that do not require additional water . the irrigation system can additionally comprise fire sensors . based upon input from the fire sensors , the controller activates the sprinklers .