DC and Servo Motor these two dont react even when the code ''seems'' right

i got something wrong in my code i do want to control a dc motor to both directions and stop it and with the servos keep changing their degreees all of this cotrolling it by an app that i created in mit inventor even tho the code seems ok is not since the servos and motor dont react move etc even tho the i wrote all the commands that the bluettooth has to receive to convert into serial to make my motors work id really know what i have wrong mb the serial signal of both of them are interfering idk

this is my code

/*Project Code*/ 
#include <SoftwareSerial.h> // TX RX software library for bluetooth
#include<Servo.h>

Servo RightServo;
Servo LeftServo;
int command;

int bluetoothTx =10; // bluetooth tx to 10 pin (TO TX
int bluetoothRx =11; // bluetooth rx to 11 pin TO RX
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); 

int ForwardMotorPin = 3; 
int BackwardMotorPin = 4; 
int enablePin = 5; 
int flag=0;       

void setup () {
  
/* SERVO MOTORS */
RightServo.attach(8);
LeftServo.attach(9);

/*DC Motor Driver or L293D IC*/

pinMode(ForwardMotorPin, OUTPUT); //This sets the output pins
pinMode(BackwardMotorPin, OUTPUT);
pinMode(enablePin, OUTPUT);
digitalWrite(enablePin, HIGH);

Serial.begin(9600); //Setup Bluetooth serial connection to android
bluetooth.begin(9600);

}


void loop() {
command = Serial.read();

                                        /*    Servo motors Code    */

if(command>=1 && command <=360)   //Rightservo move according to the thumb position on the mob app between 0 -- 360  . (this for the slider)
{
  RightServo.write(command);
}
else if (command == 205)    //LeftServo Move To Angle 0
{
  LeftServo.write(0);
}
else if (command == 206)    //LeftServo movw to angle 90
{
  LeftServo.write(90);  
}
else if (command == 207)    //LeftServo move to angle 120
{
  LeftServo.write(120);
}
else if (command == 208)    //LeftServo movw to angle 60
{
  LeftServo.write(60);  
}



                                   /*  DC Motor Code  */
/*if some date is sent, reads it and saves in command*/
if(Serial.available() > 0){ 
flag=0;  

                               // if the command is 'S' the DC motor will turn off //
    if (command == 'S') {
        digitalWrite(ForwardMotorPin, LOW); // set pin 2 on L293D low
        digitalWrite(BackwardMotorPin, LOW); // set pin 7 on L293D low
        if(flag == 0){
          Serial.println("Motor: off");
          flag=1;
        }
    }
    // if the command is 'F' the motor will turn right
    else if (command == 'F') {
        digitalWrite(ForwardMotorPin, LOW); // set pin 2 on L293D low
        digitalWrite(BackwardMotorPin, HIGH); // set pin 7 on L293D high
        if(flag == 0){
          Serial.println("Motor: Forward");
          flag=1;
        }
    }
    // if the command is 'B' the motor will turn left
    else if (command == 'B') {
        digitalWrite(ForwardMotorPin, HIGH); // set pin 2 on L293D high
        digitalWrite(BackwardMotorPin, LOW); // set pin 7 on L293D low
        if(flag == 0){
          Serial.println("Motor: Backwards");
          flag=1;
        }
    }
}
}

this is the link of the MIT INVENTOR APP
http://ai2.appinventor.mit.edu/?locale=en#5532662565044224 if u r interested i checked that already but i dont see either where i gto wrong

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

Have you got these parameters the right way round and and have you got Rx on the Arduino connected to Tx on the Bluetooth mode and vice versa ?

What do you see if you print pertinent variables in your code such as before testing values ?

I note that you read blindly from Serial without checking whether there is any data available. Note too that Serial.read() returns a single character.

yeh ik that during compiling i need to remove my RX and TX bluetooth i did it after compiling it just put them to pin 10 and 11 as i wrote in the code i also read that when i gonna linked the app with arduino i do have to do the same remove this 2 pins and after linked it connect it back

i also read that the RX AND TX pins should be connected in viceversa but like they can also be connected to others pin in the arduino that was what i did

SoftwareSerial allows you to use any pins on most Arduino boards for Rx and Tx

You only need to remove the Rx and Tx connections when uploading if you are using the hardware Serial pins (0 and 1) to connect to an external device.

Your biggest problem is expecting Serial.read() to return values like 206, by which I assume that you mean "206", ie 3 characters that represent the value.

You could do worse than look at the techniques used in Serial input basics - updated

Please use correct punctuation in your problem descriptions. It would help to sort out the issues you are describing and make them more readable.

zoomkat:
Please use correct punctuation in your problem descriptions. It would help to sort out the issues you are describing and make them more readable.

Whilst asking for clear problem descriptions is a perfectly reasonable thing to do please allow for the fact that not everyone on here is a native English speaker and that is almost certainly the case with Natalia. Unfortunately there is not a section of the forum relevant to what I believe is her native language.

"a native English speaker and that is almost certainly the case with Natalia."

Well, I have a Russian friend named Natalia (Natasha is the familiar) and she knows the function of a period and capitalization when writing. Just saying.