Did this Cure your no start at times / stalling ?
Thanks
ANOTHER couple notes:
A 3/8" Drive E8 socket will not have enough clearance.
I went to 3 auto stores and 2 Hardware stores no luck.
My New CPS arrived today - and I got lucky at NAPA and bought a 1/4" drive E8 socket for $3.
Then it snowballs.... I trusted the Parts guy online to send me the correct sensor using my VIN Number. At 1st glance it looked great until iI installed it.
The elect connector was wrong. My 1999 ML320 has a 0 261 210
141
aparently their book read 0 261 210
171.
I will update later weather or not they will take the sensor back.
My parts guy said he'd take the sensor back. Note electric connection guides in Picture. Mine is 180 degrees from bolt , replacement was 90 degrees.

--wont let me duplicate my picture can be found searching " more crankshaft position sensor questions "