The following code will calculate the pulses that are reading from the sensor; we divide the number of pulses counted in one second, and we have pulses per liter:
Open the Arduino Serial Monitor, and blow air through the water flow sensor using your mouth. The number of pulses per second and the water flow rate in milliliters per second will be printed on the Arduino Serial Monitor for each loop, as shown in the following screenshot: