You can install a fuel gauge.
Here is another suggestion. If you know your tank size you are good. Fill up your tank. Your boat, if you have the Universal diesel you use .5 gallons an hour. Watch your hour meter and just fill up after every 10-20 hours of use and you should be fine.