Hi i am very new to app inventor
i have one arduino that sends data via bluetooth with single byte (character)
if (UpRightLimitState == LOW) {
Bluetooth.write('a'); delay(10);
}
else if (UpRightLimitState == HIGH) {
Bluetooth.write('b'); delay(10);
}
if (UpLeftLimitState == LOW) {
Bluetooth.write('c'); delay(10);
}
else if (UpLeftLimitState == HIGH) {
Bluetooth.write('d'); delay(10);
}
if (DownRightLimitState == LOW) {
Bluetooth.write('e'); delay(10);
}
else if (DownRightLimitState == HIGH) {
Bluetooth.write('f'); delay(10);
}
if (DownLeftLimitState == LOW) {
Bluetooth.write('g'); delay(100);
}
else if (DownLeftLimitState == HIGH) {
Bluetooth.write('h'); delay(10);
}
in app inventor i have made an app that detects the changes and appears a text (green or red) depending the character readings
for two cases works fine
when i add 4 cases then when it should appear the green text it make it appear and then go again to red text and then back to green
when i add more cases then display only red text... like if cant read the data
my app inventor blog is like that (for the 4 cases)

I know that something have done wrong with the type of received data
the app look like that :

The Green texts (the one before the red one and the other after the other red one) going red and then green again but the should stay in green based the arduinos port status
any help about what i have made wrong?
thanks in advance
ps : i used in my arduino code and the serial.print and "h" instead 'h' character but had no change.. the results were the same in app behavior