I agree with Terry the sensor is working, the ecu just does not understand what its reporting. In my first reply I assumed that the engine was being slowed down by incorrect ignition timing ( should of looked closer at second capture ).
But what about the No 4 cylinder o/c code and low compression, these could be linked if the coil has failed and the continuation of injection caused the suggested bore wash.