Added debugging to arduino script