A device used to measure temperature is called a thermometer, and all thermometers exploit the fact that properties of a material depend on temperature. Examples of temperature-dependent properties include:
All these effects, and plenty of others, can be used in thermometers.