https://iot-guider.com/raspberrypi/analog-joystick-module-in-raspberry-pi/
Interfacing Analog Joystick Module in Raspberry Pi