Phone temperature sensor not working - Charging slow - How to fix?
You have not mentioned anywhere that you have root access but since you've added aa root-access tag i'm assuming you have root access.
Sensor disabler is what you are searching for. Just be careful!
P.S.: Take a look at this too https://forum.xda-developers.com/moto-maxx/help/how-to-disable-temp-sensor-t3504585
Generally in all phones temperature is the battery temperature and as far as i have read in many threads this is rare and indicates terrible hardware issue. And there is no way to change the value. There must be a way to bypass the temperature check though. I'd recommend you to go to a shop and get it diagnosed.