String choice;
Void setup () {
Serial.begin (9600);
}
Void loop () {
while (Serial.available()==0){ }
choice=Serial.readString();
If (choice == "boy" ) {
Serial.println( "You are welcome");
}
else {
Serial.println ("Try next time");
}
}
//Above are the lines of code, but it kept returning "try next time" irrespective of the value of choice. Even when choice is "boy"