Added logging to arduino