The materials we used: 1 elegoo Uno R3, 1 joystick module and 5 f-m dupont wires.
here, we need 5 connections to the joystick, the connections are key, y, x, voltage and ground. Y nad X are analog and key is digital. the original code. when we move the joystick in several directions we got these value