As the title says I am wanting to add however many lines of code I need to ensure that my ATO doesn't run for more than 15mins. If it does run for more than 15mins due to a stuck float switch I want it to shut off and email/text me. Can someone please help me figure out how to do that. Here are the current lines of code I have. Sw1 is obviously my top off float switch. SWX5_1, 2 and 3 are my leak detection modules and well Feed D is my maintenance mode function.
Fallback OFF
If Sw1 CLOSED Then ON
If Sw1 OPEN Then OFF
If Swx5_1 CLOSED Then OFF
If Swx5_2 CLOSED Then OFF
If Swx5_3 CLOSED Then OFF
If FeedD 000 Then OFF
Fallback OFF
If Sw1 CLOSED Then ON
If Sw1 OPEN Then OFF
If Swx5_1 CLOSED Then OFF
If Swx5_2 CLOSED Then OFF
If Swx5_3 CLOSED Then OFF
If FeedD 000 Then OFF


