Thermocouple is a temperature sensor and can be used as a means to convert thermal potential difference into electric potential difference.
This works on the principle of thermoelectric effect. It is obvious that thermocouple measure the temperature differences between two points, not the absolute temperature.