My temperature readout for a 3d printer. with alarm

Seems you're using the wrong motor driver and/or settings for your steppers.
In general, steppers should get warm, bot not so hot that they burn.
Trying to fix the problem with a temp sensor seems silly.
Tell us more about your hardware.
Leo..