As it's analog, You'll have two analog reading pins on the microcontroller to find out X and Y. Acquiring an extra electronic input will Permit you to examine the change.This code reads the analog values from a joystick's X and Y pins, converts them into corresponding voltage values, and prints them within the serial check continuously using a hold