As it's analog, You'll have two analog reading pins on the microcontroller to ascertain X and Y. Having an extra electronic enter will let you study the change. Observe that this example assumes you are applying an Arduino-suitable board that supports the Joystick library, like the Arduino Leonardo or Micro. https://rafaeluxwvt.ka-blogs.com/91338429/analog-joystick-fundamentals-explained