This water flow sensor stopped working .It's part of the control mechanism in a gas (LPG)geyser.

The 3 legged magnet sits in the pipe to the left of it. It senses water flow by by being forced up the pipe to in proximity to the 2 green wire bit which is a switch that gets closed when the magnet gets near it. Water flow through device is from the 3 leg magnet to the outlet near pcb. Normal orientation of device in geyser is with inlet facing down.
Here is other side of pcb:

I have checked the 3 leg magnet switch. It does close and allow current to flow when water flows through device.
The 3 leg transistor thingy sits in proximity to the magnet on top of the rotor wheel which spins when water flows.It does not sense the rotor magnet spinning so suspicion focused there. Very difficult to read anything on the transistor thingy but it could say M42.
I wouldnt expect there to be too many variants of that 3 legged flow sensor. Can somebody point me to some. Not too sure what to google for
That is if I have diagnosed this correctly

The 3 legged magnet sits in the pipe to the left of it. It senses water flow by by being forced up the pipe to in proximity to the 2 green wire bit which is a switch that gets closed when the magnet gets near it. Water flow through device is from the 3 leg magnet to the outlet near pcb. Normal orientation of device in geyser is with inlet facing down.
Here is other side of pcb:

I have checked the 3 leg magnet switch. It does close and allow current to flow when water flows through device.
The 3 leg transistor thingy sits in proximity to the magnet on top of the rotor wheel which spins when water flows.It does not sense the rotor magnet spinning so suspicion focused there. Very difficult to read anything on the transistor thingy but it could say M42.
I wouldnt expect there to be too many variants of that 3 legged flow sensor. Can somebody point me to some. Not too sure what to google for
That is if I have diagnosed this correctly