Stop in for a cup of coffee

I need to figure out how to track my fuel. The gauge is not working, have to mess around with it, maybe a ground wire? No gas gauge and no speedometer, use my phone I guess.
Just my 2 cents Scott but the ground from the fuel tank to the frame is most likely.