Speedometer & Odometer Aren't Working on 1996 Mitsubishi Eclipse

Anyone out there have a suggestion for a non-working speedometer/odometer wherein we replaced the speed sensor and gear in the trans. It’ll work until car gets warmed up, then it stops.