Adding the Arduino based code