String wachtwoord;
String juist_wachtwoord= "gEhEiM";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
Serial.println("this is such a trash website");
while(Serial.available()==0){}
wachtwoord = Serial.readString();
if (wachtwoord.compareTo(juist_wachtwoord)) {
Serial.println("Geheime informatie: ...");
}
else if (wachtwoord == "geheim") {
Serial.println("Warm!");
}
else {
Serial.println("Koud!");
}
Serial.println("Fijne dag nog!");
}