The Oxygen (O2) Sensor determines the oxygen content in the exhaust system. Besides that, the oxygen sensors monitor the performance of the catalytic converter (TWC).
These sensors also have a heater because they need to reach an operating temperature of at least 750° to produce the right voltage. Both the sensor and the heater have 2 wires. This circuit is constantly monitored by the PCM (Powertrain Control Module).
In case the PCM finds a not normal high voltage condition in the heater circuit, the DTC P0058 OBDII will be established. Take into account this code only refers to half of the O2 Sensor heater circuits. Also, the problem is with sensor 2 on bank 2.