Bluetooth HC-05 command delay

You might be facing incompatibility baud rate problems. Baud rate at AT Mode is always 38400. As a test, I think you should set also Serial Monitor to 38400 and use Serial.begin(38400) in the code.