Not sure i understand. i'm not trying to turn on or off a light, thats already handled. What i'm trying to do is detect when voltage is going through a specific wire maybe with a relay ? and when that happens I would like to reset a timer. Basically if the machine is IDLE for more than X amount of time I'd like to ring an alarm.