But the baud rate of SoftwareSerial and Serial? Both initialized at 9600? Is correct?
#include <SoftwareSerial.h>
#define RxD 10 //Arduino pin connected to Tx of HC-05
#define TxD 11 //Arduino pin connected to Rx of HC-05
SoftwareSerial blueToothSerial(RxD,TxD);
void setup()
{
Serial.begin(9600);
blueToothSerial.begin(9600);
pinMode(RxD, INPUT); // Pin 10 -> the pin on which to receive serial data
pinMode(TxD, OUTPUT); // Pin 11 -> the pin on which to transmit serial data
}