Corrected byte to int

This code has a bug, analogRead() returns an int, thus the type of
myValue must be int.