A temperature sensor is a device that detects and measures temperature, usually in degrees Celsius (°C) or Fahrenheit (°F), and converts it into a readable output.