What's this connector dangling in the end of the engine?

I traced back that the third pin in the connector goes to 51st pin on the ECM, speedster z22se has it listed as "pedal position sensor". Could it be that it somehow unplugged from so far? Or Other 51st pin is Heated Oxygen Sensor nr. 2