It is advisable to get your irrigation controller connected to a rain sensor. There is a sponge-like material inside the rain sensor which absorbs rainwater when it rains, making it heavy. As the sponge absorbs more water, it will sink and activate a pressure pin below it, which will send an electrical pulse to the controller, telling it to stop watering. The rain sensor will then automatically reset when the sponge dries out.