Hi
Pin 3 (GPIO03) depending on the WEMOS model, whether RX and if it is connected to a PC, it is likely that the interrupt will not work.
About this problem when using pin 6 and by using large delay.
Using too large a delay on the ESP8266 causes
reset by wdt.
To avoid long-delayed wtd, use the yield() function; .
It can be used before the delay() function;
Looking like this: