Code for motorized arduino