Have you noticed any other issues, like overheating or odd engine behavior?
Before installing a new temp sensor, check the wiring and connections.
And maybe, also look for leaks, ensure the radiator and coolant reservoir are filled to the correct levels, and check the cooling fans. Plus, verify...