Anyone here have problem with their odometer and speedometer readings? meaning not accurate? Is the speed sensor the solution to this? or is there other options.

My problem is my Automatic Tranny, and the mechanic said need to fiz first the speedometer problem for the tranny problem to go away. Thanks.