A bad crankshaft sensor in diesel engines can cause hard starting, engine stalling, poor acceleration, and irregular idling.