I'm using a 45" fuel rod which gives a reading of 0 - 5 volts depending on where the float sensor is on it. At the bottom the fuel rod reads 0, at the top it reads 5 and in the middle it reads 2.5.
I'm wondering what formula can be used to get the height for any given voltage? Initially I had used
(45/5) * voltage
but I don't think that formula is quite right.
Note:Not homework, but homework is the closest tag I can think of.