Comunicação serial

change
if (Serial1.available() != 0) {
to
while (Serial1.available() != 0) {