Ok I’ve used the math from your first post and it gives me the correct percentage.
If the placement of the sensor changes and let’s say the empty was at 95cm instead of 90cm and the full was still 15cm what would the math be?
Once I know the formula I can work it out at any distance in future.
Thanks.