The difference between two metals at different temperatures is used to generate a voltage that is reflective of the temperature in thermocouples.