changed the arduino code for waiting on us