The working principle of a thermometer depends on its type. Generally, they measure temperature based on the expansion or change in properties of a substance or electronic sensors. For example, mercury thermometers use the expansion of mercury, while digital ones use electronic sensors that convert the temperature into a digital readout.