Source: https://en.wikipedia.org/wiki/UML_state_machine
Additional Information:
Connect a potentiometer to A0. Use the function valRange = map(…) to map the raw potentiometer values to the integer numbers 0..9 . The variable varRange can acquire these 10 different values.
Print the current value of valRange to the terminal, but only, if the value changes.