That symptom indicates a bad (or, no) ground, usually from the sender to the body/frame. Try running a small ground wire from a sender-to-tank attachment post/bolt to a good ground (on the frame, or run a small ground lead back to battery ground).