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. Use an ohm meter, red lead where wire connects, black on sensor body should get some resistance value to check against manufacturer specs.

I’ll grab another sensor this week and throw it on.