Serial.write("Serial Signal"); //sent to PC
Serial.print("\n\r");
Why?
Serial.println(F("Serial Signal")); //sent to PC
while (Serial.available()) { // check for data from barcode scanner
Which is it? Is the hardware serial port being used to talk to the PC OR to talk to the barcode scanner? Both is the wrong answer.