Explain how a thermometer works?

The thermometer works by measuring the temperature of the air or liquid around it. The substance being tested will heat or cool down the liquid in the thermometer to the temperature that it is.