As I found out through personal experience, code 24 doesn't necessarily mean the VSS is bad. My speedo went out and I had code 24. Bought a new OEM VSS from Jerry (cheaper than autozone and gaurnteed to fit), and that didn't fix it. After 2 more trips to the shop having them trace all the electrical wiring, I ended up having to replace the speedometer (again, new OEM from Jerry). I actually got a whole gauge cluster from Jerry. The signal goes from the VSS to the speedometer head unit, and then to the computer. A break anywhere in there will throw the code. If the VSS checks fine, trace the wiring for breaks. Hope this helps.
1992 Trooper S, 3.2 SOHC 5spd. Cooper Discovery H/T LT265/75R16's on stock steel wheels. ProComp ES9000 series shocks. OME 929's in the rear. Environmentally friendly velocity powered climate control. CrossFit window actuators. Custom 3 bar roof rack (soon to be RTT) by Backyard Garage. Sound system by 405 Wind Turbulence.