The O2 sensor monitors the density of oxygen in the exhaust gases. It is located in the exhaust manifold.