help getting loop to loop

It will be almost impossible to hit an exact value from an analogue input. Try a greater than some number and less than some other.