IR decoder error using IR library

Hey guys. I’m trying to decode an IR signal using this program…

#include <IRLib.h>
#include <IRLibMatch.h>
#include <IRLibRData.h>
#include <IRLibTimer.h>


//Create a receiver object to listen on pin 11
IRrecv My_Receiver(12);


IRdecode My_Decoder;

void setup()
{
  Serial.begin(9600);
  My_Receiver.enableIRIn(); // Start the receiver
}

void loop() {
//Continuously look for results. When you have them pass them to the decoder
  if (My_Receiver.GetResults(&My_Decoder)) {
    My_Decoder.decode();    //Decode the data
    My_Decoder.DumpResults(); //Show the results on serial monitor
    My_Receiver.resume();     //Restart the receiver
  }
}

But every time I try too, it incorrectly decodes it and even tries to decode it when the IR receiver isnt plugged in. It also gives me this error, though it is not fatal.

C:\Program Files (x86)\Arduino\libraries\IRLib\IRLib.cpp: In function ‘unsigned char Pin_from_Intr(unsigned char)’:

C:\Program Files (x86)\Arduino\libraries\IRLib\IRLib.cpp:927:45: warning: ‘progmem’ attribute ignored [-Wattributes]

const unsigned char PROGMEM attach_to_pin= {

^

Sketch uses 9388 bytes (29%) of program storage space. Maximum is 32256 bytes.
Global variables use 818 bytes (39%) of dynamic memory, leaving 1230 bytes for local variables. Maximum is 2048 bytes.

I’m starting to get really confused. Thanks!

From https://github.com/cyborg5/IRLib:

NOTICE: This library is no longer being maintained. It has been superseded by IRLib2 which is a major restructuring of the code with many new features.

So you might consider updating to the new library, though this may require you to also update your code:

Unfortunately we were not able to maintain backwards compatibility with this library. It should however be relatively easy to update sketches to the new code.