Correcting variable declaration from byte to int.

The original code had a bug. analogRead returns an int.
This change corrects the variable mismatch.
(Thanks for the tutorial!)