added latest Arduino code - my repo is now depricated.