wires move when driving, so off, on could be a bad wire. and thats about the hottest place under the hood, the wires almost touch the cross over pipe too.
the temp sensor has a short pig tail to it, you can take it off and give it a good once over. look for cracks or missing insulation on the wires.