I had an intermittent crank no start problem which I suspected was the CPS. Changing this sensor is a bit of a challenge so here are some tips.
Here is what you are dealing with, on an engine out of the car.
Get the car off the ground with enough clearance to be able to work underneath (24 inches is fine, perhaps you can do with less).
You can get an L shaped allan key on the CPS allan screw working from behind the anti-sway bar and the half shaft, but I couldn't get enough torque on it to loosen the screw and I was afraid of stripping the head of the screw... so I came at it a different way.
I removed the right rear wheel, this allows you to get at the screw with a ratchet and a very long extension. An advantage of doing it this way is you can get your allan socket and extension on the screw and hammer on the end of the extension which both helps to loosen the threads and makes sure the socket is really well inserted in the screw. I removed the plastic bracket that holds the cable from an O2 sensor that is in the way of inserting the extension. It is a 10mm bolt accessed from behind the anti-sway bar and the half shaft. The cable from the CPS is clipped into the end of this bracket, so disengage it also.
With the screw removed the CPS can be pulled out of the crankcase.
Next disconnect the connector at the end of the CPS cable, it is a bit hard to get at, squeeze the clip on the bottom connector and pull it out of its metal bracket, then squeeze a second clip to separate the male and female connectors. The CPS can then be removed.
My biggest challenge during reassembly was getting the connector back in its metal bracket, have a close look at it before you install it so you see how it goes into the bracket.
Having long slim arms helps.