Measuring the temperature of motor with infrared thermometer