Looks like black and red are GND and +5V respectively, and the yellow is the output. Make sure you pull the data wire up to 5V. The wiki page also says it produces a square wave, with probably proportional frequency to water flow. Figure out the sq wave frequency, and you have your water flow.
enabling and disabling the interrupts in that sample code never worked for me. I cut out those 2 lines and the rest works like a champ. Well I also converted to gallons as only Eurotrash use liters....