[solved] Serial.readStringUntil does not work correctly in my code

why are you reading the Serial input 3 times?

read only once and then test against the 3 possible cases.

we would advise against Serial.readStringUntil() and would suggest to study Serial Input Basics to understand how to deal with Serial input

2 Likes