How does a thermometer work?
A liquid, often mercury or alcohol, is sealed in a long, thin glass tube. As the liquid is heated, the particles speed up and spread out. When the particles spread out, the liquid takes up more volume, and so it expands and rises in the tube. When the liquid cools, the particles come closer together, causing the liqid to contract and flow down the tube.