I'm using IRemote library to try to receive IR signal from a generic TV remote controller: at the moment, i'm using the demo example available with the library and i'm able to detect the IR signals but, in the serial monitor, it always prints 0 and not the signal value.
I'm using the IR TSOP2438 receiver (i connected the OUT pin to Arduino UNO PIN 11), this is its datasheet: TSOP2438.
And this is the code:
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
 Serial.begin(9600);
 irrecv.enableIRIn(); // Start the receiver
}
void loop() {
 if (irrecv.decode(&results)) {
  Serial.println(results.value, HEX);
  irrecv.resume(); // Receive the next value
 }
}
When i press a button from the IR remote controller, serial monitor always prints 0 value.
Can you help me to solve this problem, please? I'd like to print the correct received values.