Cannot read signal from flow meter

Thanks for your reply!

  1. I always get 0 L/hour when using a switch or a jumper, maybe the code is wrong..

  2. I've tried the sensor side and it shows variations of voltages when using a 9V battery independently from the Arduino board.