communication mega 2560 and uno via bluetooth module

hello
i have a question that is communication mega 2560 and uno via bluetooth module(hc06).
master is arduino uno and slave is arduino mega 2560. master part is connected with joystick and this sends 1 or 3 or 5 or 7 or 9. the number is determined by joystick. sending number is received by arduino mega. mega printed the number.
but when i see Mega's Serial monitor, the serial monitor like this picture.

and when i change the send number, the serial monitor change after 5 seconds.
i think mega and uno's signaling speed is different. what can i do to solve this problem? please solve my question. :frowning:

master program

#include<SoftwareSerial.h>
SoftwareSerial btSerial(3,4);
const int udlow = 300;
const int udhigh = 450;
const int lrlow = 300;
const int lrhigh = 450;
int ud;
int lr;
void setup(){
btSerial.begin(9600);
Serial.begin(9000);
}
void loop(){
ud=analogRead(0);
lr=analogRead(1);
if(ud>udhigh){
btSerial.println('1');}
else if(ud<udlow){
btSerial.println('3');}
else if(lr>lrhigh){
btSerial.println('5');}
else if(lr<lrlow){
btSerial.println('7');}
else{btSerial.println('9');}
delay(100);}

slave program

#include<SoftwareSerial.h>
SoftwareSerial btSerial(10,11);
void setup(){
btSerial.begin(9600);
Serial.begin(9600);
}
void loop(){
if(btSerial.available()){
char k = btSerial.read();
Serial.println(k);
delay(100);
}}

the picture doesn't be uploaded.
the Serial monitor
9
9

9

9

9
like this
the data comes constantly

Why are you using SoftwareSerial on the Mega, with 4 hardware serial ports?

If you are going to use SoftwareSerial anyway, why can't you RTFM?

You will need an HC-05 with the master and an HC-06 with the slave. You cannot use HC-06 modules for both.

For receiving the data have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

...R