Hello and thank you for choosing Just Answer.
If you are getting faulty speed readings or the gauge is acting "erratic", this is usually due to a bad speed sensor. The speed sensor is a magnetic type sensor which is located on the transmission. The speed sensor sends a signal to the PCM which give the gauge reading. If the sensor is bad your speed reading will be off.
Mechanic