you just answered your own question.
the ECU set your code because it was detecting something wrong with the o2 sensor. so because it never came back on after that it doesn't mean the sensor fixed itself. there is something wrong with it. it's probably contaminated.
if you took your multimeter and measured the output signal of the o2 sensor I'm sure it will give you some weird readings........
change the sensor and retest the car......