What causes the speedometer to still go haywire and bounce all over the place on a 1998 Chevy Cavalier Z24 after replacing the speed sensor?

i had a ford car that did that and it was the alternater