That is brilliant thanks, you are spot on,
I started printing actualvoltage and the threshold to the serial monitor and could see that it was only reading as whole numbers, so the code is doing what i want it to, but just not with the resolution/accuracy that i need,
I will try your Floats code tomorrow, that looks like just the ticket!
thankyou very much for helping an absolute beginner!!