Im trying to get the data from IRreceiver library, getting "Overflow" in serial

Hi, Im using an arduino uno, and i want to get the data from the IR remote, and im getting in serial "Overflow".Im using a Haier conditioner remote. heres the script:

#include "IRremote.hpp"

#define IR_RECEIVE_PIN 2

void setup() {
  Serial.begin(9600);
  IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);  
}

void loop() {
  if (IrReceiver.decode()) {
    IrReceiver.printIRResultShort(&Serial);
    IrReceiver.resume();
  }
}

Try receiveDemo example

It worked, thanks!

Thanks for trying to use code tags.
The three backticks (```) need to be on their own line. I've fixed it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.