I don't really know if the problem is on my phone or in my code I'm just a beginner in this please help
You have switched the List Picker Before and After events.
Also, you should test if BlueTooth connected in each Button Click to avoid trying to send data out over BlueTooth when it is not connected.
That's adorable.
You rearranged the positions of the events in the Blocks Workspace.
Unfortunately, that does not impose order of operation on the events.
The .BeforePicking event happens , well, BEFORE you have a chance to pick from the List Picker. It is the place where you should be filling up the Elements list of the List Picker.
The .AfterPicking event block is the block that receives control after the user has mashed his pudgy little finger against the displayed Elements list, to get a Selection. That's where you should have the blocks that process the Selection value.
Use that If Connected test in the Button Click events too, to prevent attempts at sending data over disconnected BlueTooth.