Use analogRead function to read the potentiometer value then use it to control your games.
Have a look at this: https://www.instructables.com/How-to-use-Potentiometer-Arduino-Tutorial/
Use analogRead function to read the potentiometer value then use it to control your games.
Have a look at this: https://www.instructables.com/How-to-use-Potentiometer-Arduino-Tutorial/