A friend gave me a flow sensor from a water softener.
For the moment, I didn't success to identify the component on the sensor. I think it's a hall effect sensor, but even with the marking code (N130 ?), I don't know which is the reference of this component.
From what I understood, there is a little magnet on a turbine. With the flow of water, when the turbine turns, the magnet passes in front of the sensor.
Magnet sensors in SOT89 are made by Honeywell, TDK and previously by Allegro (now obsolete). You can use e.g. Digikey parametric search to locat e some devices.