I don't understand your problem.
If you need a value between zero and one (inclusive), take the number returned by analogRead, and multiply it by 1.0/1023.0
I don't understand your problem.
If you need a value between zero and one (inclusive), take the number returned by analogRead, and multiply it by 1.0/1023.0