Skip the auto shop - Our mechanics make house calls

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

asked by on

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.

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.

Was this answer helpful?

Need advice from certified mechanic? Get help now!

Over 1000 mechanics are ready to answer your question.
The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details

Ask a Mechanic
(100% Free)

Have a car question? Get free advice from our top-rated mechanics.

Ask A Mechanic
Over 10,000 questions answered!
  • Home
  • Questions
  • Rough idle after replacing Mass Air Flow Sensor - trouble codes P0171 and P0102

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

Get a quote

What others are asking

Q: battery alternator light still on even though i have a new battery and alternator

If you check the big black cable from the alternator to the battery and there is no voltage with the engine off, then that cable needs to be replaced. On the transmission bell housing, that cable has a 175 amp...

Q: Cars cranking and trying to start but wont

As engines wear, they tend to use more oil. At the moment, just be sure to add adequate oil to your engine and, going forward, just be sure to check the oil level more frequently. Of course, check for obvious...

Q: Car doesn't run right - 2005 Chevrolet Impala

Hello and thank you for contacting YourMechanic. You will need the check the idle air control valve (IAC). It is located just under the throttle body where the throttle plate is. Unplug the harness and check the plug for any...

Related articles

How Long Does a Distributor O Ring Last?
The distributor is part of the ignition system in your vehicle and its purpose is to route high voltage from the ignition coil to the spark plug. The spark plug then...
Rules of the Road For Iowa Drivers
Driving on the roads requires knowledge of the rules, many of which are based on common sense and courtesy. However, even though you know the rules in...
P2103 OBD-II Trouble Code: Throttle Actuator Control Motor Circuit High
P2103 means there is a fault with the throttle actuator control motor circuit, likely due to a defective electrical component or part.