estoy utilizando la libreria de softwareserial.h para mostrar en el monitor serial los codigos de un lector de codigos qr, el escaner esta configurado para rs232, cuando compilo en el monitor serial solo me muestra simbolos raros pero no los codigos o textto el lector, cual sera el problema o debo de configurar el lector.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup()
{
Serial.begin(9600);
mySerial.begin(9600); // set the data rate for the SoftwareSerial port
}
void loop()
{
if (mySerial.available()) // Check if there is Incoming Data in the Serial Buffer.
{
while (mySerial.available()) // Keep reading Byte by Byte from the Buffer till the Buffer is empty
{
char input = mySerial.read(); // Read 1 Byte of data and store it in a character variable
Serial.print(input); // Print the Byte
delay(5); // A small delay
}
Serial.println();
}
}

