Right now, I have if-statements set-up with if (Serial.available() > 0) resetFunction();
Instead of calling the resetFunction whenever data is entered into the serial monitor, I want it changed so if a new string is received, then it will call the resetFunction.
However, data is received serially. So the incoming new string replaces the old string. I don't know how to store the old string. How would you store the old string?