@LocNar
I have never tried other variants of Allegro.
A1302 is the only one that I can find in my local store.
So I have used it in 2 of my joystick and on one of them is very good.

I will try looking for A1301 and A1324.
Thanks for the information.


@Sokol1
Yes I have tried changing the magnet and the sensor, and the problem remains.
now I will try changing the axis pin on the arduino board.

Can I know what sensor values do you get from your setting?