The sensor connects to the dash electronics.
The gage connects at a different point in the electronics.
Look on both sides for the issue.
The gage is a voltmeter. The electronics and sensor are a vairable resistance to limit the voltage the meter sees in relation to the temperature.
A pegged meter indicates it's seeing max voltage instead of what the sensor circuit feeds to it.
Good luck.