Bad sensor or bad gauge?

If it goes full when grounding wire, key on and zero when pulled away from ground, it's a good bet you have a bad sensor
Or the wrong sender!