What would be the most efficient method to take a 120VAC output and step it down to 5VDC or less?
I am trying to get a sensor to close a switch, but the output off the sensor is 120V AC, and that would blow my switch. Upgrading the switch is not an option, so I need to step down the volts (and most likely amps) to an acceptable voltage. I'm thinking a concept similar to a plug in wall transformer. Any ideas?