Sorry if this doesn’t help but here’s what I found:
A thermometer measures temperature through a glass tube sealed with mercury that expands or contracts as the temperature rises or falls. ... As temperatures rise, the mercury-filled bulb expands into the capillary tube. Its rate of expansion is calibrated on the glass scale.