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?
The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details
  1. Home
  2. Questions
  3. 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: Car cannot start, shifter showing second gear

Your symptoms seem to be similar to the situation where the linkage between the shifter handle and the transmission range selector may be loose or broken. In this event it may seem like the transmission range selections don't match up...

Q: Loss of power - 2006 Infiniti G35

Hi and thanks for contacting YourMechanic. Since you are getting different sensors acting up, check all of the connections to all of the sensors and make sure that there is no missing bolts. There could be a vacuum leak causing...

Q: Idling roughly and stalling

If you are referring to your head gasket, it is possible that something may not have gone back together correctly in the process. If the gasket did not seal, this could cause compression issues which could cause your engine not...

Related articles

P0052 OBD-II Trouble Code: HO2S Heater Control Circuit High (Bank 2 Sensor 1)
P0052 code definition HO2S Heater Control Circuit High (Bank 2 Sensor 1) What the...
P0240 OBD-II Trouble Code: Turbocharger Boost Sensor B Circuit Range/Performance
P0240 code definition Turbocharger Boost Sensor B Circuit Range/Performance What the P0240 code means P0240 is an OBD-II generic code triggered when the Engine Control Module (ECM) detects the intake boost...
How Much Does a Mechanic Make in Vermont?
Automotive technician jobs in Vermont have an average mechanic salary of $37k, with some mechanics earning a salary of $53k.