As the joystick is moved, the potentiometers’ resistance improvements, leading to different voltage levels which might be go through by a microcontroller or other processing device. This code reads the analog values from the joystick's X and Y pins, converts them into corresponding voltage values, and prints them around the https://analog-stick05701.eedblog.com/38405344/an-unbiased-view-of-analog-joystick