Hi RFEFX - I'm trying to find some examples of using an IR remote to turn on/off a PCB board, kinda like a stereo receiver/TV/DVD box works (the box's remote power button toggles the power on or off but you can also turn it off with the switch right on the box). Could I adapt your code for that purpose (my board runs on 9V DC so not as serious as your AC house mains)