Found the fault, one of the cables to the sensor had a nick in it so it had corroded resultating in no contact. Soldered them and now it works.

/Mikael