Why does the gas gauge on a 1995 dodge Dakota pickup truck bounce all over and not read accurately even when standing still?

The sending unit(float) has failed. The sending unit is attached to the fuel pump module in the fuel tank.