a thermometer is a device used to measure temperature