Connect esp 32 and android by bluetooth

Iam doing my project helmet with accedntal alert that connectedto esp 32 by bluetooth and send sms and location to a mobile number when accedent happens ,to detect accedent we use accelerometer the first stage of this I need to connect my esp 32 to android can anyone help me to do it

Help me with those blocks
When I try to connect it shows 507 error

Somehow this looks not right. Are you trying to connect via BLE or BT?
Anyway, try this for help: FAQ Section: BlueTooth Starter Guides