adding sleep to wait for arduino to finish reseting