programming different sensors

Earlier, you were using flowPin as a pin number (used in a pinMode as INPUT), now it looks like it's a general purpose variable.

Edit: that's another variable called flowPin.
That's not at all confusing.