D. Liquid-in-glass thermometer.
In a liquid-in-glass thermometer, the liquid (usually mercury or colored alcohol) expands and contracts with temperature changes, allowing for the measurement of temperature based on the volume change of the liquid.