Interrupt (RISING) - triggers twice

Things are not so clear if you use attach/detachInterrupt() :frowning:

I'd only attach the interrupt once, and never detach it. For deactivation use a global flag, that can be tested in the handler.