For about $10 (Amazon), you can buy a 12/24V DC to 5V DC converter. It would probably do the trick*. Just have to cut off the USB connector and add ring terminals.

*not sure how much current flows through a gas gauge.


Gord 🇨🇦
----
1954 1/2 ton 235 4 speed