While still holding the display panel up, use two fingers to firmly push down on the power supply cable connector from its socket.
Be very careful not to touch the exposed face of the power supply to avoid electric shock from the many large capacitors attached to the other side of the board.
To remove the optical drive thermal sensor, use the tip of a spudger to lift the center finger of the thermal sensor bracket while applying slight tension to the thermal sensor cable.
If the thermal sensor is stuck to the optical drive, skip to the next step.
Use the flat end of a spudger to pry the optical drive thermal sensor bracket up off the adhesive securing it to the optical drive.
If the adhesive gets dirty or will not stick to your new optical drive, place some double-sided tape under the two semicircular ears of the thermal sensor bracket.