This sketch receives the infrared signal on standard pin number 3, decodes and dump the infrared information on Serial and forward the raw infrared signal to pin number 4.
It can be used as an IR repeater or as a programmable two-way converter between Serial/Ethernet and IR when used with Ethernet board.