Connecting Arduino Nano 33 to smartphone

It seems like you skipped the reading forum guidelines.

Read the forum guidelines to see how to properly post code and some good information on how to ask the question.
Please do not post again until you read it completely.