When this problem occured on our machine it was caused by a broken wire on the tempreature sensor. The sensor is located below the drum, so you have to remove the front of the machine.
There are two white and red wires that go to a plug that fits into the tempertature sensor. In my case one of the wires had broken at the point it fits into the plug. Repairing it was simply a case of opening-up the plug and forcing the wire down into the insulation displacement connector.
Pete Knight, October 2009