Application of thermometers in motors