In order to enter command mode of hc-05
Pin 34 should be high
does pin 34 means the state pin?
No, it's the other one, usually labelled EN. The STATE pin is a signal that can be used by Arduino to check for connection. I have never heard of it being used.