Water flow meter control pump speed instead of drone speed

Is there any way to add pump control using simple water flow meter support like:
https://aliexpress.ru/item/1005002454508588.html
to control pump (PWM) to match spraying dosage?
Currently pump speed depends on drone speed multiplied by constant in settings