why my gas gauge went to empty when i just filled up the tank on 1998 Ford Taurus

gas tank was full started driving check engine light came on and gas gauge went to empty shut off car turned back on gauge went up then driving it went back to empty

Asked by for the 1998 Ford Taurus
poss fuel tank sending unit has gone bad at set a code pertaining to that issue