To get the really handy IR remote library that Ken Shirriff made
go to http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
and download and install the library
make sure to change
in IRRemoteInt.h. (to open IRRemoteInt.h and edit it, use Notepad on Windows, or Text Editor on Mac, but don't open with arduino IDE because it won't open with it.)
to make it arduino 1.0/1.0.1 compatable
On the page make sure to read about how to use the library and find the correct protocol for your device
check out the sending example and test it to make sure it works on your arduino
NOTE: picture 1 shows the sending code, and picture 2 shows the hardware setup for it.
then do the receiving test on your arduino to find out your remote hexadecimal codes by pointing your remote at the receiver and pressing the buttons you want the codes for, the see the codes in the Serial monitor.
make sure to write down the codes or store them somewhere for future use.
NOTE: picture 3 shows the receiving code, and picture 4 shows the hardware setup for the receiving code.
If you get all these to work then you are set to continue!