Speedometer stopped working on my 2006 KIA Spectra on 2006 Kia Spectra

It works when I first start out in the morning, then just stops after about 10 minutes of driving.

Asked by for the 2006 Kia Spectra
changed speed sensor and cluster also, no engine lights on and everything works on the instrument panel except speedometer,tripmeter and milage meter. Cruise is working also.
3 answers
CK FOR CODES AND ADV POSS SPEED SENSOR HAS GONE BAD
I don't have an answer