IRremote error

Hi,
I am using IRRemote library but still getting this error:

C:\Users\haase\Documents\Arduino\libraries\IRremote\IRremote.cpp:28:27: fatal error: avr/interrupt.h: No such file or directory

#include <avr/interrupt.h>

^

compilation terminated.

exit status 1
Error compiling for board WeMos D1 R1.

file interrupt.h exists in instalation folder but IRremote library probably can not find it.

Can anybody help me?

Thank you

avr/interrupt.h: No such file or directory

Where is the interrupt.h file located

The WeMos does not have an AVR chip. You should use the ESP8266 IRRemote library here

@UKHeliBob interrupt.h is under C:\Program Files(x86)\Arduino\hardware\tools\avr\avr\include\avr\interrupt.h

@blh64 actually my code is older and using older library IRrecv that is not available anymore but probably is now covered by IRremote library. (it worked well but now I need to reinstall one arduino from new PC and I cannot get the old library anymore)

I tried to used IRremoteESP8266 instead but now I got another errors:

_2-IR_obrazy5:20:1: error: 'IRrecv' does not name a type

IRrecv irrecv(sensor);

^

_2-IR_obrazy5:21:1: error: 'decode_results' does not name a type

decode_results results;

^

C:\Users\haase\Dropbox\brainteaselava_materialyJanosik\ArduinoRaspberry_2-IR_obrazy5_2-IR_obrazy5.ino: In function 'void setup()':

_2-IR_obrazy5:59:3: error: 'irrecv' was not declared in this scope

irrecv.enableIRIn(); // Start the receiver

Maybe look at the examples that come with ESP8266 library. I don't have it but I'm guessing they may have different function names.