Bluetooth Serial unavailable

So I am using a Bluetooth module with the Arduino called HC-05 and all worked well until I noticed it keeps returning unavailable.
Code:

#include <SoftwareSerial.h>// import the serial library

SoftwareSerial BTSerial(0, 1);
int ledpin=13; // led on D13 will show blink on / off
char BluetoothData; // the data given from Computer

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  BTSerial.begin(38400);

  Serial.println("Started:");
  pinMode(ledpin,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  if (BTSerial.available() > 0){
    BluetoothData=BTSerial.read();

    Serial.println(BluetoothData);
  } else {
    Serial.println("Unavailable!")
  }
  delay(100);// prepare for next data ...

}

Anyone know why this happens?

Welcome to the forum

SoftwareSerial BTSerial(0, 1);

Don't use pins 0 and 1 for SoftwareSerial. They are used by the hardware Serial UART of AVR based Arduinos such as the Uno and Nano. Use 2 other GPIO pins of your choice

Thank you, so I put them in 5 and 6 but it still returns Unavailable.

Does the Bluetooth pairing work OK ?
I assime the you have cross connected Rx/Tx between the Arduino and the Bluetooth module and that the baud rate is correct

have a look at thread sending-and-receiving-data-with-a-smartphone-and-a-single-hc-05-module

Yes to both.

Now it does seem to work except the data it is recieving is incorrect with what is sent.
So when I send an "a" it prints out:
"x
x


x"

What did you change to make it work ?

Check the baud rate

I changed the baud rate now it recieves normal except between every print there are three lines.
Nvm fixed. Ty all so much!

Are you receiving CR and LF characters at the end of the messages?

No but the app I am sending messages from is already doing the new line that is why it didn't work.