Set Appliance State:

Isolate Mains Power to appliance as per TOPs P4
Set Multimeter to Resistance Set meter to measure resistance
Disconnect connector from flow switch

Measurement:

Check for continuity (zero resistance) between the blue and black wires on M6 to the wire of corresponding colour at the flow switch.
Check for continuity (zero resistance) between the red wire on A9 to the red wire at the flow switch.
Inspect the harness and connectors for good overall condition.