Water flow Sensor

Thank you Martin, I tried it the way you suggested but as being faily new to arduino it does not work,
I sure i am doing some thing wrong. I attached the new code. IF you would be so kind to take a look and point me in the right direction it would be highly app.
Thank you

flowsensortest2.ino (2.52 KB)