update the arduino code for cs.program