Measure Dispensed Water, repeat with push button

You can enable and disable interrupts under program control. As I understand it, interrupts received while disabled will be serviced once reenabled. Interrupts received while detached are just gone.