A sensor is a device that measures a physical property or condition and converts it into an electrical signal, which can be measured or recorded. Sensors are used in various applications such as automobiles, medical devices, consumer electronics, and industrial processes to detect changes in the environment and respond accordingly.