I have a TRI-PLC T00MD-888+, and would like to sense the 120VAC as being on/off only. Know I could do it with a 9 transformer, rectifier bridge , capacitor resistor divider and opto-isolator. Thinking there is a simpler way to do it, like a 120vac input, TTL output Opto-isolator chip.