Arduino serial monitor outputs garbage characters when used with HC-05 [SPLIT from another topic]

have the same problem when i want to use my old button phone as a gm module, i connected my old button phone to rx-tx and tx-rx of arduino ,and i change the serial pins as well but i was getting garbage output to the serial monitor i have tried to change the baud rate but still getting same results here is the code:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2,3);

void setup()
{
mySerial.begin(19200); // the GPRS baud rate
Serial.begin(19200); // the GPRS baud rate
}

void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());

}

Your post is completely incoherent, most particularly the title, and the comments in the loop section are probably nonsense. I don't dare ask what an old button phone is, or what it is doing connected to Arduino's serial port. Is HC-05 actually connected to Arduino? If so, what baud rate have you configured it to?

usually incorrect characters in the serial port means communication speed error or coding error between the two devices