code update with arduino connection