Hello. A few days ago my 2000 3.8L Grand Prix stalled out and wouldn't run. My error codes were for the MAF sensor. I've had problems with it before and this time cleaning it didn't seem to work so I replaced the MAF sensor which got the engine running but not well. I was also having problems with idle so I replaced the IAC. This also improved the situation. After these fixes I got a code for the MAP sensor which upon taking it out was in bad shape and cleaning it didn't make a difference so I replaced it as well. Now where it gets interesting is that I was "borrowing" a remanufactured MAF sensor (and the engine was running well with no codes) and when the brand new sensor arrived I switched them out (they were the same price but the new one had a lifetime warranty, I'm regretting this). After switching them out I'm getting the infamous P0171 code.
I have read around on this forum including posts by "BillBoost37" and have tried a few things out. I cleaned the new MAF sensor. I have examined all my vacuum tubes and have examined my PCV. My PCV still rattles and appears to be functioning correctly. I had one vacuum hose that was a little loose that I pushed back on. I didn't do too much with my EGR because I'm honestly not too sure what I'm looking for there.
Guy at the auto parts store said it may be my O2 sensor. I did get a code with my O2 sensor about a year ago but it was with a MAF code and after cleaning the MAF sensor I didn't get that code again.
Suggestions on where to go from here? Thanks for reading.