Using VS1838B with Arduino
Looking further here

http://forum.arduino.cc/index.php/topic,188236.0.h...

I found the following

"Removing 
the files - libraries\RobotIRremote\IRremoteTools.cpp and 
libraries\RobotIRremote\IRremoteTools.h solved the problem. They are
example files which somehow are getting included. You can move those two 
files to some other location as backup."

I went to my libraries 
file and did this and can confirm that the example given above then 
compiles fine without downloading a new library. Its an Arduino 
libraries problem .

Either way will work

answer from here and worked for me

i use this code:

#include &lt;IRremote.h&gt;
int input_pin = 10; //set D10 as input signal pin
IRrecv irrecv(input_pin);
decode_results signals;
void setup()
{
    Serial.begin(9600);
    irrecv.enableIRIn(); // enable input from IR receiver
}
void loop() {
if (irrecv.decode(&amp;signals)) {
        Serial.println(signals.value, HEX);
        irrecv.resume(); // get the next signal
    }
}