I am just getting into the Raspberry Pi scene so forgive my ignorance - how difficult would it be to write code that could take a distance measure (maxSonar) in mm and convert it to volume (ounces remaining). I have this hairbrained idea to try and monitor fluid levels in my beer keg or hot liquor tank. Yes I am aware of flow meters - just have the sonar on hand from a friend that I can use. Any suggestions would be greatly appreciated.
-Tad