it's in the gearbox,
above the differential.
But before you go pulling it apart a good garage will have Vaux diagnostic software,
there's a section in this that can "drive" gauges without the vehicle even being on the road,
That way you'll know if it's the gearbox speed sensor or a failed gauge/wiring.
Might save you time and cash.