2006 Nissan Altima - Won't start

car turns over but not getting spark

Bad crankshaft sensor.