2013 to 2019 Nissan Sentra Upstream/Upper O2 Sensor Replacement
Is your Nissan Sentra engine idling rough, and is the check engine light on due to a faulty oxygen sensor? Learn how to fix the problem by replacing your vehicle’s oxygen sensor. This guide is a step-by-step procedure for replacing the upstream/upper O2 sensor on a Nissan Sentra 2013 to 2019.
At a Glance
- Vehicle: 2013 to 2019 Nissan Sentra
- Part: Upstream (bank 1 sensor 1) oxygen sensor
- Tools: 22mm O2 sensor socket and metric tools
- Symptoms: Check engine light, rough idle, poor fuel economy
- Tip: Remove it with the engine warm (not hot) and use anti seize on the new threads if not pre coated
Signs of a Bad Upstream O2 Sensor
- Check engine light, often with codes P0130 to P0135 (bank 1 sensor 1) or lean and rich codes P0171 and P0172
- Rough idle or hesitation
- Worse fuel economy
- Failed emissions test
Before replacing the sensor, check for exhaust leaks ahead of it and vacuum leaks, which can make a good sensor read wrong. A scan tool such as the YOUCANIC UCAN-II Pro shows the sensor’s live readings and fuel trims on supported models, so you can see whether it is responding.
What you will need
- Nissan Sentra Oxygen Sensor
- Mechanic Metric Toolset
- 22mm O2 Socket
Procedure
- Open the hood. Pull the hood release under the dashboard and unlock the hood latch, then pull the hood up and secure it open using the hood support.


- Remove the engine cover by pulling it up and out of the vehicle.


- Locate the O2 sensor on the back of the engine near the firewall.

- Disconnect the electrical connector of the O2 sensor by pressing the clip and pulling the connector out.

- Loosen and remove the O2 sensor by using a 22mm O2 socket.


- Line up the new O2 sensor and tighten it using the O2 socket.

- Connect the electrical connector of the O2 sensor by pushing it into its connection port.

- Line up the engine cover back to the vehicle and press it to set it in.

Check Engine Light On

If the check engine light is on after replacing the oxygen sensor, you can use the YOUCANIC UCAN-II Pro to reset the check engine light. This scanner can also read and clear fault codes in the engine and other control modules on supported vehicles.
🔧 Find out what is actually wrong before you pay someone to guess
Dealer level diagnostics at home with the YOUCANIC UCAN-II Pro.
- ✔ Covers most makes and models, including many luxury brands. Send us your VIN and we will confirm your car before you order
- ✔ Reads every module, not just the engine, so you find the faults a basic reader says are not there
- ✔ Commands the car: test a fan or pump, bleed ABS, retract an electronic parking brake, register a battery
- ✔ No subscriptions. Free lifetime updates, so the price you pay is the whole price
- ✔ Backed by real mechanics in the USA you can email before and after you buy
Featured in The Wall Street Journal
Check these troubleshooting and repair guides for more help on your Nissan.
Frequently Asked Questions
Where is the upstream O2 sensor on a Nissan Sentra?
It is on the exhaust manifold or the front of the exhaust, ahead of the catalytic converter, reached from the engine bay.
What socket do I need for the Sentra O2 sensor?
A 22mm oxygen sensor socket.
What codes point to a bad upstream O2 sensor?
Codes P0130 to P0135 for bank 1 sensor 1, and sometimes lean or rich codes such as P0171 or P0172.
Will the check engine light go off after replacing the sensor?
It may turn off after several drive cycles, or you can clear the code with a scan tool.
Related Guides
- Nissan Sentra: ABS Wheel Speed Sensor Replacement
- Nissan Oxygen O2 Sensor Replacement
- 2013 to 2019 Nissan Sentra: Sway Bar Link Replacement
- 2013 to 2019 Nissan Sentra Tensioner Pulley / Engine Mount Replacement













