Changed variable type

AnalogRead returns int variables and was declared a byte variable. This
has been fixed.
Comment added