I want to monitor an input for a given period of time, let's say 5 minutes. If it stays high for 5 minutes I then want to turn on another input until the original is turned off.

Can someone help...