Code for the Arduino