Q: Had new Mass airflow sensor put on an now I'm getting a code p0171 what could it be

asked by on September 29, 2016

in the morning I start it up an it start putting an shut off but starts back up gotta put it in drive when warming up

My car has 158000 miles.
My car has an automatic transmission.

This relates to a lean fuel condition which can be caused by many different things such as:

  • Intake air leaks
  • Faulty front heated oxygen sensor
  • Ignition misfiring
  • Faulty fuel injectors
  • Exhaust gas leaks
  • Incorrect fuel pressure
  • Lack of fuel
  • Faulty Mass Airflow (MAF) sensor (You already replaced, so it should not be this)
  • Incorrect Positive Crankcase Ventilation (PCV) hose connection

I would recommend having an expert from YourMechanic come to your home to diagnose your trouble code firsthand and help you repair it as necessary.

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

Engine won’t start sometimes, problem goes away later
Jeep released a Technical Service Bulletin (TSB) that covers this no crank or no start problem. The TSB 08-007-08 dated 7/04/2008 states that the wireless control module (WCM) is susceptible to locking the ignition after getting a static charge from...
How does the security system work in a 2012 Honda Civic?
If your car is equipped with a security system, it offers important protection from theft. However, note that it does not prevent anyone from breaking into your car, stealing items, or even stealing your car. It is a deterrent only....
Ways to determine if the timing belt snapped on a '97 Honda Accord
It's a '97, so the car has a distributor. One fairly quick way to check is to take the distributor cap off. It has just two screws and it is really easy to get off. Have somebody crank the engine...
Tires are turned in vibrate when started stops while driving
Hello there. The most common causes of a tire vibration (https://www.yourmechanic.com/article/what-causes-a-car-to-shake) are the inflation levels, tire balance, damaged wheel or tire or an alignment issue. With your car only having 1 mile on it, I would suspect that the tire...
Dash lights stayed on despite several parts were replaced
Since the steering column was opened, and you not only have faults showing in the ESP, ABS, and BAS systems with the indicator lights, but you also have the SRS light on as well, I am inclined to believe that...
Oil indicator light on
I think that one of two things could be happening with your 2007 BMW 750 Li. The first of which is that you may be burning oil. If you are burning oil, you would see bluish white smoke coming from...
I was told it would get about 26 highway miles up to 30 I am getting 22 miles to a gallon and other lyrics 226 miles per tank of g
After a quick search, the 2016 Jeep Compass with 2 liter engine is rated at about 22 miles per gallon in the city and 26 on the highway. This number is a general calculation and really depends on how the...
Steering wheel hard turning on 2007 Volvo V50
According to the service I use to make recommendations by mileage, the change interval for the timing belt (https://www.yourmechanic.com/services/timing-belt-replacement) is 120,000 miles. 100,000 miles is a little early, but it is better to perform services like these earlier rather than...
Not getting good read on my oil dipstick
Hi There, The best time to check the engine oil is usually just before starting the motor or after it has been shut down for 10-20 minutes. This allows for all of the oil in the motor to be drained...

Related articles

P0131 OBD-II Trouble Code: O2 Sensor Circuit Low Voltage Bank 1 Sensor 1
P0131 code definition The P0131 code is low sensor voltage for oxygen sensor bank 1 sensor 1 or improper air fuel ratio....
P2016 OBD-II Trouble Code: Intake Manifold Runner Position Sensor/Switch Circuit Low Bank 1
P2016 P2016 code definition Intake Manifold Runner Position Sensor/Switch Circuit Low Bank 1 What the P2016 code means P2016 is an OBD-II generic code for the Engine Control Module (ECM) detecting a low voltage failure in the intake manifold runner...
P000A OBD-II Trouble Code: "A" Camshaft Position Slow Response Bank 1
P000A code definition This code is known as ‘A’ Camshaft Position Slow Response Bank 1. You may also see a 00010 fault...