An exhaust sensor is a device that measures the composition of a vehicle's exhaust gas. It detects gases such as oxygen, carbon monoxide, and nitrogen oxides and sends this information to the engine control unit (ECU), which adjusts the air-fuel mixture and ignition timing to optimize engine performance and reduce emissions.