update Arduino example code