You can, of course, purchase tank level sensors dedicated to the task, many of which are used in the marine (yachting) industry to meter domestic water tank levels.
Those operate using a float and arm assembly that rotates a variable resistor and provides a variable DC voltage for direct meter...