serial input connection problem when using HC-05 BT modul

So, I have the following modules:
-Grove - Temperature&Humidity Sensor (High-Accuracy &Mini) v1.0
-stepper motor
-Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board
-arudino uno

So I have a code for the data reading from the sensor and its working. Then I have a code for the stpper to rotate with a char input and is also workin separate. But when I combine this two the char input is not working if the BT module is connected to TX RX.

The TEST.ino is the code where I combined the stepper and BT.

Any suggestion?

TEST.ino (1.37 KB)

Stepper_OK.ino (554 Bytes)

Bluetooth_OK.ino (973 Bytes)

  Serial.begin(9600);        // start serial for output
  Serial.flush();

Initialize the serial port, and then wait until all outgoing data has been sent. Why, EXACTLY, is it necessary to wait until an empty buffer is empty?

  Serial.println("****TH02_dev demo by seeed studio****\n");

Why are you uselessly pissing away SRAM? Learn to use the F() macro.
Serial.println(F("TH02_dev demo by seeed studio\n));

    while (Serial.available() > 0)
     {
         input += (char) Serial.read(); 
         delay(5); 
     }

There is absolutely NO excuse for that delay(). NONE!

What, exactly, is the bluetooth module paired with?

Why do you need to piss away resources using the String class to handle the device that the bluetooth module is paired with sending '1' or '2'?

Well, don't know why exactly is writen everything. Im still learning. And stuff what's not commented i try to understand.

The bluetooth is paired with an App that i made where I can read temp. and hum. separately. But at the same time there is a stepper motor connected where I want him to move whenever i write 1 or 2.

Have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

...R