I have a 2008 mazda 3 2.0l automatic. So had an O2 sensor go out, undid the battery. Replaced the sensor reconnected the battery. Check engine light came back on, running lean and same O2 sensor. Deleted the codes drove 200 miles no light, but rough idol when in drive after car reaches operating temp. I attempted to do an idol relearn, but not sure how important turning the ac on is but my AC don’t work. That’s another issue I’m working on as well, should be simple. I just bought this car about a month ago the check engine light was on when I bought it for the O2 sensor (bank1, sensor1) I have been working on bringing her back to life. New struts, shocks, end links, ball joints, front and rear sway bar bushings, tie rod ends, and soon new AC compressor, coil, cultch, and drier. I’ve got all that going but need to figure out why I have the rough idol, any suggestions would be great. Thank you.