The heat of an object is the total energy of all the molecular motion inside that object that gives the ability a of substance to work.
Temperature is the measure of the average heat of the molecules in a substance that gives the degree of hotness or coldness of the substance.
Hence, the measure of the degree of hotness or coldness of an object is called temperature. The magnitude of temperature indicates the average energy of molecules in the substance.
Measurement of temperature
Temperature is measured in Fahrenheit, Celsius, or Kelvin scales.
Thermometer is the instrument used to measure the temperature. Thermocouples, resistive temperature measuring devices (RTD), infrared sensors, bimetallic devices and silicone diodes are also used to measure temperature.
Molecules of substance vibrate based on degree of temperature. Increase in temperature increases vibrations of particles. So all devices measure temperature by sensing change in these physical characteristics of the matter.