for (byte i = 0; i < 6; i++) { while ( Serial1.available() == 0 ); // <<<<<<<<<< data[i] = Serial1.read(); }