Are you trying to replace a known bad O2 sensor, or a suspect one?
Because there is a pretty simple way to bench test them with a propane torch and multimeter.
And it can also rehab them if marginal and get many more miles out of them.
I have had some that were throwing codes intermittently. I took them out, heated and tested them and they passed OK. After heating and burning the orifices clean via the torch, they went back in and worked perfectly.