How Does a Thermometer Work?