Using VS1838B with Arduino I just bought VS1838B IR module (from here) and I’m trying to make it work. Below you can find the circuit to see how I have connected the 1838B IR receiver:

My Code (Here) :
#include &lt;IRremote.h&gt;

int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
#define CH1 0xFFA25D 
#define CH 0xFF629D
#define CH2 0xFFE21D
...
#define BUTON8 0xFF4AB5
#define BUTON9 0xFF52AD

void setup()

{

 Serial.begin(9600);

 irrecv.enableIRIn(); 

}

void loop() {
 

 if (irrecv.decode(&amp;results)) 
  {

 if (results.value == CH1) 

 {

 Serial.println(&quot;CH-&quot;); 
 }

 if (results.value == CH) 

 {

 Serial.println(&quot;CH&quot;); 

 }

 if (results.value == CH2) 

 {

 Serial.println(&quot;CH+&quot;); 

 }

 ...

 if (results.value == BUTON8) 

 {

 Serial.println(&quot;BUTON8&quot;); 

 }
if (results.value == BUTON9) 

 {

 Serial.println(&quot;BUTON9&quot;); 

 }
 irrecv.resume();

 }

 

}

But I'm not getting any output from Serial Monitor.
Can you help me for debugging it?
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
    }
}