Some sensors often fail by becoming heat-sensitive, then they'll work again after cooling down for an hour. Start by having the stored diagnostic fault codes read. They will get you into the circuit or system that needs further diagnosis.