A sensor is a device that detects changes in a physical or environmental condition, such as temperature, light, pressure, or sound, then converts it into an electric signal, which can be read and interpreted by a controller or computer. Sensors are used in devices like phones, computers, cars, robots, and medical instruments to help them work and provide feedback. Examples include temperature sensors, pressure sensors, proximity sensors, accelerometers, and chemical sensors.