updating the arduino code: