I update the board and now it works, NPN probe switch to 1000 when having metal in front of the sensor. it is now working as a switch, it gives two values, 0 and 1000. I will now proceed with the bed leveling.
Thanks for your help, this solved also some other issues I had with the PanelDue.