Code for Arduino project