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");
}
}
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");
}
}