Q: I have codes P0151, P0171, and P0174. I have changed out my O2 sensor, but now I have all these codes

asked by on October 31, 2016

First I only had codes p0151 and p0400 once I replaced those two senors after some weeks I got more codes p0151 p0174 and p0171 what could be the cause of this problem

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

Hey there. The codes you have downloaded simply relate to malfunctions in the "engine management system." It appears codes were set for oxygen sensor voltage out-of-range, possible EGR (exhaust gas recirculation) problems such as a blockage, and a generic code indicating that the air/fuel ratio is too lean. Codes only give clues. Codes are never to be read conclusively as exactly which part or parts should be replaced until the fault has been inspected.

For example, with regard to the oxygen sensor "code", an exhaust leak ahead of the sensor could cause that code to be set, not to mention a faulty oxygen sensor harness connector. So you could have a perfectly good oxygen sensor reporting the "wrong" data because of a leak in the exhaust that admits unexpected additional air that the sensor "reads".

A key point is that any part referred to in a code has to be separately and carefully diagnosed to determine if the part has actually failed as opposed to a circumstance where the part (often a sensor) is just simply reporting correct data because SOMETHING ELSE has failed. This is why most expert mechanics suggest conducting Check Engine Light diagnostics on codes before moving forward with repair.

In your circumstance, the operating lean codes could possibly be caused by an air leak after the mass air flow (MAF) sensor, such as a torn intake boot, or bad intake manifold gaskets, a dirty or faulty mass air flow sensor, a continuing problem in the oxygen sensor circuit (wiring, exhaust leak), incorrect fuel pressure (or a failing fuel pump), leaking positive crankcase ventilation (PCV) valve, clogged exhaust gas recirculation (EGR) Port, and/or leaking brake booster.

Basically, all of these items, and possibly additional ones have to be checked, and each ruled in or out, in turn, until the root cause(s) are found. If you would like to have all of these codes properly diagnosed, a certified professional from YourMechanic can come to your car’s location to inspect the car.

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

How Does a Car's Rear Defroster Work?
Most vehicles have an electrical grid on the rear window that will warm the glass to clear fogging or frost. The rear defroster (https://www.yourmechanic.com/article/5-essential-things-to-know-about-the-defrosting-system-in-your-car) grid is applied to the inside of the glass by the manufacturer and actually conducts electrical...
How does the vanity mirror on the passenger sun visor work?
The vanity mirror on the passenger side of your Accord is designed to provide better visibility than the basic mirror on the driver side sun visor. To use it, just: Fold down the sun visor from the roof Open the...
How do I flash the high beams?
You can quickly flash the high beam headlights to get the attention of another driver or a pedestrian. To do so, pull the turn signal lever (which protrudes from the left side of the steering column) towards you, and immediately...
The car has reduced engine power
Hello there. There are many potential causes for reduced power output. The most likely would be the fuel pump (https://www.yourmechanic.com/services/fuel-pump-replacement), low fuel pressure, battery (https://www.yourmechanic.com/services/battery-replacement), alternator (https://www.yourmechanic.com/services/alternator-replacement), or fuel filter (https://www.yourmechanic.com/services/fuel-filter-replacement). A bad throttle sensor (https://www.yourmechanic.com/services/throttle-position-sensor-replacement) can cause this issue...
Spark plugs not sparking. 1995 Pontiac Trans Sport
Hello there. Thanks for writing in. No start faults are one of the most common complaints on many vehicles including your 1995 Pontiac Trans Sport. Cars need three things to start: spark, fuel, and air. Spark is the first one...
Sulfur smell coming from exhaust
A rotten egg smell coming from the exhaust (https://www.yourmechanic.com/services/exhaust-fume-odor-in-car-inspection) is almost exclusively a result of a failing catalytic converter. It is caused by the catalytic converters inability to break down the sulfur created by the engine during normal operation. A...
Noise coming from transfer case. Not coming out of 4 wheel drive quadra drive II.
Hello. We will be happy to assist you. The issue your vehicle is having will be best pinpointed by technician. I suggest that you have a technician perform an inspection of your four wheel drive system to help find the...
I am planning to buy a 2011 BMW 328i with 80k miles, 1 owner and automatic transmission. How much should I pay for it?
I would suggest checking the Kelly Blue Book website with specifics related to your zip code as market prices of cars vary by zip code. This will give you a baseline for determining whether or not the car is within...

Related articles

4 Essential Things to Know About Your Car’s Check Engine Light
The Check Engine Light turns on when there's an engine problem. A bad oxygen sensor or failed spark plug are common causes for the Check Engine Light.
How Long Does a Barometric Sensor Last?
The The barometric sensor (also called the barometric pressure sensor, or BAP) is one of a number of sensors on cars that have computer-controlled engines. All it does is measure atmospheric pressure, essentially the same way that a weather barometer...
How to Replace a Speed Timing Sensor
Some signs of a failed speed timing sensor include a Check Engine Light and poor performance. It's also known as the crankshaft position sensor.