Liquid-in-glass thermometers are based on the principle of thermal expansion of substances. A liquid in a glass tube (called a capillary) expands when heated and contracts when cooled. ... In liquid-in-glass thermometers, the thermal expansion of liquids is used for measuring the temperature!