To be brief the o2 sensor is a device that measures the oxygen content in the exhaust gas. Depending upon the oxygen content (none meaning rich lots meaing lean) the o2 sensor creates the appropriate voltage which is interpreted by the ECU as the condition. Youve gotta remember everything from a pressure signal to a engine knock is translated into a voltage signal.