I recently noted that there is a problem with arduino's IR library. There is a default library available in new arduino software. But while using IR receiving variables with ir receive pin at some points (say at 12 or 3) problems messages showed like pin initialised as TKD2 . This is bcoz the default ir lib uses ir remote for robots with the robot arm connected at TKD2. So go to arduino/libraries/IRremote and move files like IRremote.cpp and IRremote.h to some other folder. Then download IR remote library from github or ken sheriff's blog and use it.
Have fun with arduino. :D :D