Can't send data Arduino to Arduino with Bluetooth

Hello. I am using Arduino Uno. And i was connected 2 Arduino Uno With Bluetooth HC-05 ( HC-05 to HC-05) They connect successful everytime. And When i am use Arduino Terminal for sending data, it sending perfectly another Arduino Uno. However Master Arduino not send sensor data to Slave Arduino. What is my mistake? thank you

canberkcakmak: What is my mistake?

I think it might be the brand of cornflakes you eat but nobody is ever going to really know.

If you can't be a bit less secretive about the code you might find some help here.

http://phillipecantin.blogspot.ca/2014/01/hc-05-bluetooth-link-of-2-arduino.html

i already connected Arduinos and already use AT commands and they connect successful. But Master Arduino not send sensor data to Slave Arduino. When i use Master Arduinos Terminal it send everything what i am write to Slave Arduino. I think it is not about cornflakes!

I think it is..........

Thank you for your perfect suggestion. Use brain another time.

I'm glad you find it perfect because, since you refuse to show your code, it's the best suggestion you will ever get.

Here is the my code and i was uploaded these code to my arduinos and when i write 1 or 0 , led is on and off. but when i add sensor on my master board it didnt send anything. So my servo didnt work. Thank you

#include <SoftwareSerial.h>
 
SoftwareSerial Mojo(0,1);           // RX, TX
int ledpin=9;
int BluetoothData;
 
void setup() {
  Serial.begin(38400);                  // Init serial communication to verify data through serial monitor

 
  Mojo.begin(38400);                    // Init BT communication

 
  pinMode(ledpin,OUTPUT);
}
 
void loop() {
   if (Mojo.available()){              // If BT available
     BluetoothData=Mojo.read();        // Read data sent from PC to Arduino through BT
     Serial.write(BluetoothData);      // Write in serial what I sent
 
     if(BluetoothData=='1'){                  // If sent data is 1
       digitalWrite(ledpin,1);                // Led On
       Mojo.write(" || Mojo led ON");         // Write me the led is On (I do NOT receive this message)
       Serial.write(" || Serial led ON");     // Write me the led is On
     }
 
     if (BluetoothData=='0'){                 // If sent data is 
       digitalWrite(ledpin,0);                // Led Off
       Mojo.write(" || Mojo led OFF");        // Write me the led is Off (I do NOT receive this message)
       Serial.write(" || Serial led OFF");    // Write me the led is Off
     }
  }
  delay(100);
}

My sensors code is :

#include <SoftwareSerial.h>
 
SoftwareSerial Mojo(0,1);           // RX, TX
int ledpin=9;
int BluetoothData;
int flexpin = 11;

 
void setup() {
  Serial.begin(38400);                  // Init serial communication to verify data through serial monitor

 
  Mojo.begin(38400);                    // Init BT communication
 
 
  pinMode(ledpin,OUTPUT);
  pinMode(flexpin,INPUT);
}
 
void loop() {
   if (Mojo.available()){              // If BT available
     BluetoothData=Mojo.read();        // Read data sent from PC to Arduino through BT
     Serial.write(BluetoothData);      // Write in serial what I sent
 
     if(BluetoothData=='1'){                  // If sent data is 1
       digitalWrite(ledpin,1);                // Led On
       Mojo.write(" || Mojo led ON");         // Write me the led is On (I do NOT receive this message)
       Serial.write(" || Serial led ON");     // Write me the led is On
     }
 
     if (BluetoothData=='0'){                 // If sent data is 
       digitalWrite(ledpin,0);                // Led Off
       Mojo.write(" || Mojo led OFF");        // Write me the led is Off (I do NOT receive this message)
       Serial.write(" || Serial led OFF");    // Write me the led is Off
     }
  }
  delay(100);
}

So what is the true code of my Master Arduino for sending sensor data. Thank you so much

Here is my Sender Arduino code :

#include <SoftwareSerial.h>

SoftwareSerial Mojo(0,1);           // RX, TX
const int PotansiyometrePin = A0;
int BluetoothData;
int analog;
int zero = 0 ;
int one = 1 ;


void setup() {
  Serial.begin(9600);                  // Init serial communication to verify data through serial monitor

  Mojo.begin(9600);                    // Init BT communication
pinMode(A0,INPUT);

}

void loop() {
analog = analogRead(A0);
if (analog > 500){
Serial.println(one);
Serial.write(one);
  }
else{
Serial.println(zero);
Serial.write(zero);
}
  
  
//Serial.write(analog);
//Mojo.write(analog);
//Serial.println(analog);
  delay(500);


}

Here is my reciver code :

#include <SoftwareSerial.h>
 
SoftwareSerial Mojo(0,1);           // RX, TX
int ledpin=9;
int BluetoothData;
 
void setup() {
  Serial.begin(9600);                  // Init serial communication to verify data through serial monitor

 
  Mojo.begin(9600);                    // Init BT communication

 
  pinMode(ledpin,OUTPUT);
}
 
void loop() {
 //  if (Mojo.available()){              // If BT available
     BluetoothData=Serial.read();        // Read data sent from PC to Arduino through BT
    Serial.write(BluetoothData);      // Write in serial what I sent
 
     if(BluetoothData=='1'){                  // If sent data is 1
       digitalWrite(ledpin,1);                // Led On
 //      Mojo.write(" || Mojo led ON");         // Write me the led is On (I do NOT receive this message)
 //      Serial.write(" || Serial led ON");     // Write me the led is On
     }
 
     if (BluetoothData=='0'){                 // If sent data is 
       digitalWrite(ledpin,0);                // Led Off
   //    Mojo.write(" || Mojo led OFF");        // Write me the led is Off (I do NOT receive this message)
   //    Serial.write(" || Serial led OFF");    // Write me the led is Off
     }
 // }
  //delay(100);
}

Nick_Pyner: I'm glad you find it perfect because, since you refuse to show your code, it's the best suggestion you will ever get.

pls help.

having the same issue with HC-05 to HC-06