Corrected byte to int

The code had a bug, analogRead returns a int.
Change corrects the variable mismatch.