\begin{abstract} In a IoT environment, there are many devices will periodically transmit data. However, most of the data are useless, but sensor itself may not have a good standard to decide transmit or not. Some static rule maybe useful on specific scenario, and become useless when we change the usage of the sensor. In this paper, we want to present a method to reduce the file size of thermal sensor which can sense the temperature of a surface and output a two dimension gray scale image. In our evaluation result, we can reduce the file size to $50\%$ less than JPEG when there is $0.5\%$ of distortion, and up to $93\%$ less when there is $2\%$ of distortion. \end{abstract}