Check the female electrical connection in which 02 sensor is plugged into.4 wires go into it , one of them wires was broken.
You can also check on obd2 device ,the 02 sensor voltage reading , if its showing below 0.1 then there is problem with the circuit or 02 sensor. Use the tester on all 4 pins of female connector.
Thats all i know atm