Infrared thermometers are favored for their safety, hygiene, and efficient measurement, and have developed rapidly. However, the infrared thermometers currently on the market have the disadvantages of large measurement error and high cost, and their applications are limited. In view of this, various factors affecting the measurement accuracy of infrared thermometers are firstly analyzed, and the calculation results of the specific influence degree are given. Then, using the STC12C5A60S2 microcontroller as the control core, through the MLX90614 infrared temperature sensor, a design for hospitals, families, etc. is designed. A cheap and reliable portable infrared thermometer, and a temperature compensation method is given. Finally, the reliability of the system design is verified by experimental tests. The test results show that the maximum comprehensive error does not exceed 0.2, which has certain practical value and reference value.