As the joystick is moved, the potentiometers’ resistance improvements, resulting in different voltage ranges that may be go through by a microcontroller or other processing unit. This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and prints them on the https://joystick-controller50357.blogmazing.com/37108058/5-tips-about-arcade-joystick-you-can-use-today