What year vehicle?
I would guess that it is the upstream sensor. What are your symptons?
Check the wires before removal of sensor removal. Warm engine, disconnect electrical connector, (exhaust will be hot) use a open end wrench or special 02 sensors socket to remove sensor. New sensor should have anti seize compund on it so you do not remove it before installing sensor.