HOw to detect the flow of water through a pipe

I am not sure how I am messing this up :blush:

The code seems to run fine but the only thing that increments is Tu

I confirmed the connection to pin 4 has 5V on it and even pulled it out/stuck it back in several times to replicate pulses...nada

Is there some dependency on the lightning code I am missing?