You may have a dodgy wire, I did.
The wire from the sensor goes down behind the boiler, and is cable tied up to the frame, one of the cables had come out of the connector, yours could be the same
It’s only 2 wires, the float just joins them to say there’s water.
Take the back off , then the weight and trace the wire back.