// Keep reading from Arduino Serial Monitor and send to HC-05
if (Serial.available())
{
hc = Serial.read();
BTserial.print(hc);
}
}
i dont know what mistake i have done here, i am unable to receive data from bluetooth to android please help
Your code is probably incomplete.
You might find the following background notes useful
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino
it does not cover sending data from serial monitor. There are better ways to commuinicate from PC to Android than use Arduino. It does cover data from Arduino to android via bluetooth.
You check that you have at least 1 byte:
if (Serial.available())
then proceed to read 6 bytes (x = 0,1,2,3,4,5)
Why not wait until you have more than 5 bytes?
if (Serial.available() >5)