Q: Rough idle after replacing Mass Air Flow Sensor - trouble codes P0171 and P0102

asked by on October 28, 2016

Was having problems with car turning off at red light or when coming to a stop. Check engine light indicated mass air flow sensor. Replaced air filter and maf sensor. Problems with vehicle turning off seemed to go away but now I have a rough Idle. Car will drop below 1000 rpms and then rev back up to over 1500 like it wants to shut off. Idle problems seem to go away when maf sensor is disconnected. Car throwing codes p0171 and p0102. Where should I go from here?

My car has 190000 miles.
My car has a manual transmission.

Car idle is rough Inspection $94.99 - $114.99 Get a Quote
Barometric Sensor Replacement $135.54 - $588.21 Get a Quote

The P0171 refers to a possible lack of fuel pressure, a leak in the intake air system, or a possible vacuum leak. The P0102 also leans towards a leak in the intake air system. It is possible that there is a problem with a BARO (barometric pressure) sensor that is reading faulty. Its purpose is to measure atmospheric pressure, the amount of air entering the engine, and supply the ECM with a calculated reading that allows the engine to make corrections accordingly.

If the BARO sensors readings are off, the supplied amount of fuel will be incorrect, and can therefore cause running issues. I would first check all of the intake plumbing to be sure it is all seated and tight, and then test the BARO sensor for correct function.

I recommend having a certified mechanic, such as one from YourMechanic, come to your location to determine why your car is idling rough and if the barometric sensor needs replacing.

The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details

Get an instant quote for your car

Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Fair and transparent pricing


Experienced Mechanic?

Earn up to $70/hr

What others are asking

Need to remove CD from car stereo.
Sometimes you can use some tweezers to get the cd out when you hit the eject button. Other than that you will have to remove the radio and send it off to get them to remove the cd. A technician...
TPMS Light
First and foremost, you should have all the tires checked for the proper air pressure. You could have different air pressure levels on your tires and, after driving on longer trips, your tires will tend to heat up, causing the...
About engine
Hey there. This involves the often heard notion and fallacy of "perpetual motion." Yes, if you or something imparts a big enough force to a powerful enough rubber band you can actuate a piston. But due to the Law of...
Is it dangerous to drive your car with spark plugs misfiring?
To answer your question, yes it is unsafe to drive you car while you are having a misfire. I have provided an article written by one of our professional technicians below. https://www.yourmechanic.com/article/is-it-safe-to-drive-with-a-misfiring-cylinder.
Coolant coming from spark plug hole
If coolant is getting into every plug hole, the intake manifold may have a crack, or cracks allowing that to happen. If the manifold was not checked for cracks when the intake gasket was replaced, maybe it should be taken...
Is it possible to manually release a parking brake that has been engaged too far? 08 Honda Pilot
Looking at the foot operated pedal assembly, you will see a plastic wheel, or like mechanism possibly with metal spikes or steps, that locks the pedal when you depress it. That component is stuck or seized in place. If an...
My wheel is almost impossible to turn and I can not drive the car because of it .
You should check the power steering fluid to see if the fluid leaked out from a leak. If fluid is low then refill reservoir and start and turn wheel back and forth slow to see if steering gets better and...
I keep hearing a popping/clunking sound on the right front passenger side of my truck near the right tire.
The sound might be related to a worn suspension component. From what you are describing, it should be fairly easy to pin down with static testing (e.g., ball joints should only move "so much" during a test). To pinpoint the...
PSE pump is not working will the roof work?
The PSE pump is often a victim of drowning. Mercedes really goofed when they decided on the location. As for its function, it operates low power devices like the door locks and the retractable trunk handle and little things like...

Related articles

A Buyer’s Guide to the 2012 Volkswagen Routan
For For those who need a vehicle that focuses on people-moving and little else, the 2012 Volkswagen Routan just might hit the mark. With improved fuel economy and responsiveness compared to the Chrysler platform on which it is based, this...
A Buyer’s Guide to the 2012 Volkswagen Jetta
In In the second year of the completely redesigned new Jetta, Volkswagen continued its campaign to bring a more affordable compact car to the market and to further raise the bar on their US sales numbers. The base model 2012...
A Buyer’s Guide to the 2012 Volkswagen Jetta TDI
The The 2012 Volkswagen Jetta TDI is a great choice for any car enthusiast who needs a practical but fun car for everyday driving. The Jetta TDI (which stands for turbocharged direct injection) has a whole host of features to...