If you still get a problem after checking the sender, check your earth straps.
I had a guage which behaved erratically too, but I noticed (by chance) it was responsive to other electrical systems (for example with the lights on, applying the brakes caused the guage to rise - then fall when off...