corrected byte to int

original code has a bug. analogRead returns int