I find it advisable to not have the engine running when clearing codes, and to let the controller go to sleep afterwards before trying a restart. But the MIL will indeed clear itself after a few key cycles once proper operation is restored and the diagnostics have had time to pass.
Did you make sure there's nothing wrong with the harness? Intermittent continuity can cause that code.
Did you get your new sensor from a GM dealer? I'd be disinclined to use aftermarket.
Did you make sure there's nothing wrong with the harness? Intermittent continuity can cause that code.
Did you get your new sensor from a GM dealer? I'd be disinclined to use aftermarket.