Thanks for the reply.
I tried to set up the sensor so the top is pointed at the magnets.
However, now the sensor value can not reach 0 and 4060.
They are around 300 (min) and 3800 (max).
However, these values does not work well with mmjoy.
When I test it with joytester in joysetup.exe,
the values always changes, they can not be used optimally.
You can read about that more clearly here: