I think that the code is for an older version of the IDE . This is the lib that I use GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols
I think that the code is for an older version of the IDE . This is the lib that I use GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols