Which car do you have? I replaced my O2 sensor (91 535i) after a CE light and 1221 fault code. No effect - I still get the CE light, the 1221 code, and HORRIBLE gas mileage (13 mpg).
But I'd still replace the O2 sensor if I were you...
Good luck.
Erick