IR receiver does give a signal back

Hello,

I have a problem with the IR receiving and remote module of my arduino starter kit.

After having connected the lines of the IR receiving module, inserted the battery to the remote module and uploaded the code, there was no output in the serial monitor.

The good news is, by pressing a key on the remote unit, a red led on the IR receiver shines (--> Supply of the receiver and the remote is okay :smiley: ).
In the next step I modified the code by introducing a counter to see whether the loop is running correctly. :wink:

Here is my modified code:

#include <IRremote.h>

const int RECV_PIN = 7;
IRrecv irrecv(RECV_PIN);
decode_results results;
int number = 1;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn();
  irrecv.blink13(true);
}

void loop()
{  
  // just to see whether the loop is working
  Serial.println(number);
  number = number +1;
  //
  
  if (irrecv.decode(&results))
  {
        Serial.println(results.value, HEX);
        irrecv.resume();
  }
  delay (1000);
}

The result on the serial screen is shown in the attachment. It shows the upcounting counter.
Good news: the code seems to run correctly and the serial monitor works (see attachment) :smiley:
Bad news: no signal of the remote module occurs :sob:

Any idea what might be the problem?

Thanks
Dietmar