I have this code below where I got from this forum that I followed through. It did not work for me but they claim that the code is fine. I already tried several string compariso
solved your code is right you just have to set arduino terminal on "no line ending" you also forgot to write this Serial.println("switching off");
and thanks for sharing your code i am also using your code thanks!!