interfacing water flow sensor to arduino

hi

I am trying to use a water flow sensor to sense water flow in a pipe and control a valve in the pipe based on the flow.
the water flow sensor i am using is in this link
http://www.seeedstudio.com/depot/g12-water-flow-sensor-p-635.html#productReview

can you guide me in interfacing the sensor to arduino..

Thanks in advance
Dinesh

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.

You can get more information, especially with regard to calculating the flow rate at Seeedstudio forum: Tutorial: Reading Water Flow rate with Water Flow Sensor - #2 by ESP - Grove - Seeed Forum

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.... :wink: