A link to the flow meter would have been helpful but most use pulses, the faster the flow the faster the pulses. If so then you need to count the number of pulses in a set time (or the average interval between pulses) and use this value to determine the LED colour.