Updated the Arduino code