Temperature is the average kinetic energy of all the particles that make up a system. It is used to measure the cold and heat of a system. The temperature of a system can be accurately measured by the use of a thermometer. The units of measurement of temperature are Kelvin, Celsius.
Also, Fahrenheit is used in some parts of the world, especially in the United States. On the other hand, thermal energy is the internal energy of a system. It is also the total kinetic energy of a system. The thermal energy of a system depends on the temperature of the system.
As the kinetic energy of a system increases, the thermal energy is also increasing. While temperature is measured in Kelvin, Fahrenheit, and Celsius, the unit of measurement of thermal energy is calorie or joule. The temperature of a system can have both negative and positive values. On the other hand, thermal energy is usually positive.