I downloaded the SerialOTG extension
https://github.com/rkl099/Appinventor-SerialOTG/blob/main/com.SerialOTG.aix
I have a program like this: