We need to start with a couple of things. First let's check for codes and make sure you have the P0128 which is pretty common with this issue.
https://www.2carpros.com/articles/checking-a-service-engine-soon-or-check-engine-light-on-or-flashing
If you do have this code then based on what you did, the likely cause of this is the thermostat.
I am not sure why when you replace the sensor it is ok for a while other than that is a coincidence so to confirm this we should run through this info and make sure the scan tool is reading the sensor correct.
If the sensor is reading the temperature correctly then it should show on the gauge so if the gauge is not showing the engine getting hot, then we may be missing something on the sensor/wiring side, but this testing should help us find that.
Images (Click to make bigger)
SPONSORED LINKS
Sunday, December 12th, 2021 AT 10:05 AM