bluetooth controlled door lock

#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3); // RX | TX
// Connect the HC-05 TX to Arduino pin 2 RX. 
// Connect the HC-05 RX to Arduino pin 3 TX through a voltage divider.
// 
 
int c[5];
 
void setup() 
{
  pinMode(13,OUTPUT);
  digitalWrite(13,LOW);
    Serial.begin(9600);
    Serial.println("Arduino is ready");
 
    // HC-05 default serial speed for commincation mode is 9600
    BTserial.begin(9600);  
}
 
void loop()
{
 
    // Keep reading from HC-05 and send to Arduino Serial Monitor
    if (BTserial.available()>0)
    {  
        c[0] = BTserial.read();
        Serial.println(c[0]);
        
    }
    if(c[0]==1234){
    Serial.println("available");
    Serial.println("UNLOCKED");
    delay(2000);
  }
  else{
    Serial.println("NOOOOOOOO");
    Serial.println("TRY AGAIN");
    delay(2000);
  }
   // Keep reading from Arduino Serial Monitor and send to HC-05
 if (Serial.available())
    {
        c[0] =  Serial.read();
        BTserial.write(c[0]);  
    }
}

it complies and but when i send a data like 1234 in serial monitor i get
49
50
51 etc but i didnt send that , please help me

Maybe you get ASCII characters?

1 is 49 ASCII
2 is 50 ASCII ...

Serial gets one byte (on character) at a time.

c[0] will never be “1234”.

You need to have a “start character” and an “end character”.

For example, if the user puts in 1234…you send 1234#. Your arduino code stores each character in a byte array after a is received and until a # is received.

You then take those characters and convert them in to a single variable that can be compared.