Finding the IR Codes of any IR remote using Arduino

We make several projects on various platforms and we always need the codes of any appliance, console, etc just by using an Arduino. Most of the appliances from TV, DTH receiver , DVD Players to AC, etc are controlled wirelessly using IR remotes. If you want to make an IR based project with a remote which you bought from the market or the remote of your AC, TV ,etc. then, you should be aware of the codes which are sent by the remote to the IR receiver in the appliance or device. IR remote has button and a microcontroller with IR LED attached. When a button is pressed, microcontroller identified the button and sends the corresponding modulated signals(codes) to the IR LED. Then, the IR LED sends it to the IR receiver in the appliance.”

Link