Is there a way I can track how much filament is left on a roll?
Either an add-on sensor I can build or software that will track how much is used vs how much is supposed to be on the roll?
Have a Prusa Mk4 and it’s working ok so far but been having trouble with very long prints so trying to figure out if my rolls have enough left
Not really.
You can weigh it, and the slicer gives you an estimate of how much volume/mass is needed.
But it’s not too difficult to pause a print. Unload what little you have left and reload a new roll then resume the print.
That’s assuming you have another roll of the exact type/color filament you are using ready to go.