I am currently using a state machine on the Arduino to detect if water is present or not. The state machine checks for water every 100ms and if water is present, I have a message displaying on the serial monitor.
My problem is that the serial monitor displays the messages so fast that it is hard to read and determine the moment when water starts to be detected. I was wondering if there is a way to briefly display this message in the serial monitor, clear the monitor and then print the new message. Therefore, if the message is not changing the message on the serial monitor should appear static and only change when a different message is displayed.