Flow meter using Wemos Mini - ISR not in IRAM!
This happens because of conflicts between Serial and external interrupts
Put ICACHE_RAM_ATTR before your interrupt function, like this  ICACHE_RAM_ATTR void ISR()