gas gauge on 1990 Ford F-350

When using my front tank my gas gauge does not always work, just ussually when i fill it up. If i turn the truck off and turn it back on it will no longer work. When i use the back tank the gauge works fine

Asked by for the 1990 Ford F-350
Sounds like the fuel level sensor in the front tank is bad.