Passes control to other tasks when called. Ideally yield() should be used in function**s** that will take awhile to complete.

In this case, since you are going to use the second loop() to fetch the data in the serial buffer, awhile is infinite so yield there for sure.