A temperature sensor is a device used to measure temperature, often in real-time. These sensors can be critical in various fields, including epidemiology, where they help in monitoring environmental conditions and physiological states that can influence the spread of diseases.