Citroen Service instructions for the DW10BTED4 engine (2.0 Hdi 2009 vintage) are quite straighforward.
The crank engine speed sensor is located around the crank pulley and is part number 1920GJ for that particular model/year - but yours may vary. Should be around £40 mark, but some cheaper, some more expensive.
Disconnect the battery obeserving the usual battery disconnection song and dance routine
Lift and support the vehicle with the wheels free.
Turn the steering to right-hand full lock.
Disconnect the connector to the speed sensor.
Remove :
The securing bolt
The engine speed sensor
Refit :
The new engine speed sensor
The securing bolt tighten to 7Nm
Reconnect the connector
Return the vehicle to its wheels.
Reconnect the battery......