adding the code up for arduino