Cannot read signal from flow meter

1_ test the arduino side: Check connecting the pin2 to something else like switch and see if you can read it
connect if to 5 v and then to 0.

2- Check the flow sensor: put to water circuit and check volts between yellow and black cable.