Arduino - Esp32 - Digmesa flowmeter

We are working on a project using a Digmesa pulse flowmeter. We manage to get accurate total flow reading and calibrate by changing the meter factor. The factor is 151. The issue is the real-time flowreading - to much variation on the flow. We are now taking the time between 15 pulses to do the calculation of flow. With a flow around 2.5 liter pr minutes, the reading jumps +/- 0.2 liter.
Are there any better ways of setting this up to get a more accurate reading??

Thank you

I, and probably many of the helpers, know little to nothing so far. At least post all the code in code tags, and post the diagnostic prints you should do again in code tags. Now add a photo of a hand-drawn wiring diagram.
Also, a datasheet for the flowmeter.
Several times, you said we. Are you a school group? I don't do homework unless you give me the degree and accompanying high salary.