Added the code to drive the Arduino