How do you repair the fuel gauge of a 1988 Ford F150 Needle moves when truck is rocked so float seems to be working?

My 1988 ford thunderbird has a digital gas guage. Last week it stopped working. Now all it reads is E (empty) How can I fix it?