Can you keep driving?
Can you keep driving?
Stop driving if any of these apply
- !The engine is misfiring, stalling, or the check-engine light starts flashing.
- !There is a strong exhaust smell or a drivability change that suggests a bigger fault than the sensor alone.
What to check first
Step-by-step checks
- 1
Free - no tools
Check for exhaust leaks ahead of the sensor before replacing it
- 2
Free - no tools
Inspect the sensor connector and harness for heat damage, looseness, or contamination
- 3
Basic tool needed
Notice whether the engine is running lean or rich, because that can slow the switching pattern
- 4
Basic tool needed
If scan data is available, compare the downstream sensor switching speed with fuel trims
- 5
Basic tool needed
If related misfire or catalyst codes are present, treat them as part of the same diagnosis
If the code returns
- -If the exhaust is sealed and the engine runs well, the sensor becomes a stronger suspect.
- -If the code returns after a sensor swap, go back to leak and mixture checks before buying another sensor.
- -If the sensor response improves after a fuel-system repair, that is more useful than the code name alone.
Background
What this code means
P0165 is a generic OBD-II oxygen-sensor code for bank 2 sensor 3.
A slow response can come from the sensor itself, a leak ahead of it, or a mixture issue that makes switching sluggish.
Poor fuel control, sluggish throttle response, or another fuel-trim code can show up alongside this one.
Diagnosis
Common causes
Aging sensor
The sensor can still work but switch too slowly for the ECU test.
Exhaust leak ahead of the sensor
Fresh air can slow or distort the switching pattern.
Fuel-mixture issue
Lean or rich running can make the response look sluggish.
Wiring or heater problem
A connection or heater weakness can keep the sensor from responding normally.
Avoid these mistakes
What not to do
- xDo not replace oxygen sensors first if there is an obvious exhaust leak or mixture problem.
- xDo not ignore rough running just because the code names a sensor.
Parts
Parts that may need replacing
See also
Related OBD codes
Source notes
Generic OBD-II (SAE J1979 / ISO 15031-5). P0165 was expanded around common slow-switching oxygen-sensor faults, including exhaust leaks, mixture issues, and sensor aging.
This guide is written as a generic multi-make reference, so bulletin history, sensor locations, and repair order can still change by manufacturer and engine family.
This is generic OBD-II guidance and should not override vehicle-specific service information. Exact diagnosis and repair steps vary by make, engine family, and model year.
Last reviewed: 2026-04-10
Reference: Open reference