Disconnect the sensor wiring plug and unscrew the sensor securing bolt.
Refitting make sure the sensor drive peg is engaged correctly with the hole in the drive gear turn the drive peg as necessary until it fits.
 

Similar threads