I have an 05 Toyota corolla, and have the check engine light on, I scanned it at autozone and error code is P0171 - System Too Lean (Bank 1). Which shows following possible causes: Faulty MAF, O2, fuel injectors blockage etc. On recommendation from the guy in autozone, I added fuel additive to clean the fuel line/ injectors. The check engine light went away for 9 months. But it is back on again. Tried putting in fuel additive again but the light remains on.
It’s an ambiguous code in terms of cause. You need to check for vacuum leaks and check the fuel pressure. Ideally someone would check out the actual signals from the O2 sensor to look for problems with the sensor itself. A MAF cleaning would be a good idea.
I agree with cigroller, sounds like an MAF cleaning is the best (and cheapest) place to start. Also check the air filter for holes or debris, sometimes mice get in there. I put a write-up and a bunch of pictures on how to clean the MAF in a Corolla here: