Hi.
You've done a lot of work to get this far, so you're not lazy.
What you want to achieve is certainly possible (and a lot more). You do not need a second Arduino. The difference between HC-05 & HC-06 is that the 05 can be set to either master or slave, while the 06 is always slave. This only matters if you want to pair two of these devices to each other, like you would if you wanted two Arduinos to communicate via bluetooth. Don't worry about this.
Software serial versus hardware serial trips up everyone to begin with. The difference is highly technical, but you can wrangle it by following a few rules.
Hardware serial (uses pins 0 & 1 on UNO & Nano) is built in. It can be used to communicate with an external device like an HC-05. It is always used by the IDE to upload a sketch to the Arduino and by the IDE's monitor to display data sent from the Arduino and to send data to the Arduino.
BUT YOU CANNOT DO BOTH -- you cannot communicate with the external device thru pins 0 & 1 AND use the serial monitor in the same sketch.
Never use software serial on pins 0 & 1.
Software serial is not builtin to the Arduino; it is managed by software. That's why you have to include the library and use the function it provides.
You haven't actually used software serial, only initiated it with the statement "SoftwareSerial BTSerial(0, 1);".
Do you want the distance to appear on the monitor? The following statement will not do it.
// Print the distance on the Serial Monitor (Ctrl+Shift+M):
front_d = distance;
There might be a problem with this statement:
{if (readPing(); < max_d)
{
Stop();
}
Semi colon signals the end of a statement, so shud there be one after readPing() ?
If you need to display data on the monitor, I would use software serial on pins other than 0,1,3 & 4 (and any other digital pins already used).
Try a simple sketch that just displays the data sent from the phone. Get that working. Follow the tutorials.
Always run Windows Device Manager. This tells you what ports are in use; you will see yr HC-05.
Always use a Bluetooth Serial Terminal app on yr phone to check on the BT/Arduino comms.
Good luck. You'll get there. Bluetooth is very handy.
John.