Updated Arduino Firmware Code