If it is an electric gauge, check for a good engine to body ground. resistance to ground will mess up a lot of things, and cause all kinds of phantom and errant behavior on everything depending on that ground.
Likewise make sure all of your wiring connections are good.
Sometimes disturbing old wiring wakes the gremlins.