Changed myValue's type from byte to int

analogRead() returns a int and not a byte, so changed the type being
used in accordance with this.