This code lets you switch on or off the output pin (pin 0) via an IR remote control. Thanks nathanchantrell for the original code