How can I use the monitor input to trigger a function? That is, if there is an input from the serial monitor a function is called but otherwise the loop continues.
To be clear, I don't want to wait for an input but if one is given a function is called.