Added code for arduino