Thermocouples operate based on the Seebeck effect, which states that a voltage is produced at the junction of two different metals when there is a temperature difference between the junction and the ends of the metals. This voltage is then measured and converted into a temperature reading using a reference table or a calibration curve specific to the types of metals used.