Originally Posted by DieselBear
but I feel the alternator went bad due the crankshaft sensor.

Doubtful it was the crankshaft sensor - It has nothing to do with electrical/charging system in the car. But if your old battery was defective, it could have put extra strain on the alt and took some time to finally give out.
James