I am reposting your config.g here so its easier to read (use the </> button to post gcode etc so tis formatted and easy to read:
; Accessories M575 P1 S0 B57600 ; configure PanelDue support ; Network M552 S1 ; configure WiFi adapter M586 P0 S1 ; configure HTTP ; Smart Drivers M569 P0 S1 D2 ; driver 0 goes Forwards(X axis)(s0- back s1-fwd) M569 P1 S1 D2 ; driver 1 goes Forwards (Y axis) M569 P2 S0 D2 ; driver 2 goes Backwards (Z axis) M569 P3 S0 D2 ; driver 3 goes Backwards (extruder 0) ; Motor Idle Current Reduction M906 I30 ; set motor current idle factor M84 S30 ; set motor current idle timeout ; Axes M584 X2 Y1 Z0 ; set axis mapping M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation M906 X800 Y800 Z800 ; set axis driver currents M92 X160 Y160 Z800 ; configure steps per mm M208 X0:300 Y0:300 Z0:400 ; set minimum and maximum axis limits M566 X900 Y900 Z12 ; set maximum instantaneous speed changes (mm/min) M203 X6000 Y6000 Z180 ; set maximum speeds (mm/min) M201 X500 Y500 Z250 ; set accelerations (mm/s^2) ; Extruders M584 E3 ; set extruder mapping M350 E16 I1 ; configure microstepping with interpolation M906 E800 ; set extruder driver currents M92 E420 ; configure steps per mm M566 E120 ; set maximum instantaneous speed changes (mm/min) M203 E3600 ; set maximum speeds (mm/min) M201 E250 ; set accelerations (mm/s^2) ; Kinematics M669 K0 ; configure Cartesian kinematics ; Probes M558 P9 C"^zprobe.in" H5 F120 T6000 ; configure BLTouch probe via slot #0 G31 P500 X5 Y15 Z0.7 ; set Z probe trigger value, offset and trigger height M950 S0 C"exp.heater3" ; create servo #0 for BLtouch ; Endstops M574 X1 P"!xstop" S1 ; configure X axis endstop M574 Y1 P"!ystop" S1 ; configure Y axis endstop M574 Z1 S2 ; configure Z axis endstop ; Mesh Bed Compensation M557 X25:275 Y25:275 S40:40 ; define grid for mesh bed compensation ; Sensors M308 S0 P"bedtemp" Y"thermistor" A"Heated Bed" T100000 B4725 C7.06e-8 ; configure sensor #0 M308 S1 P"e0temp" Y"thermistor" A"Nozzle" T100000 B4725 C7.06e-8 ; configure sensor #1 ; Heaters M950 H0 C"bedheat" T0 ; create heater #0 M143 H0 P0 T0 C0 S140 A0 ; configure heater monitor #0 for heater #0 M307 H0 R2.43 D5.5 E1.35 K0.56 B1 ; configure model of heater #0 M950 H1 C"e0heat" T1 ; create heater #1 M143 H1 P0 T1 C0 S350 A0 ; configure heater monitor #0 for heater #1 M307 H1 R2.43 D5.5 E1.35 K0.56 B0 ; configure model of heater #1 ; Heated beds M140 P0 H0 ; configure heated bed #0 ; Fans M950 F0 C"fan0" ; create fan #0 M106 P0 S0 L0 X1 B0.1 ; configure fan #0 M950 F1 C"fan2" ; create fan #1 M106 P1 S0 B0.1 H1 T45 ; configure fan #1 ; Tools M563 P0 D0 H1 F0 ; create tool #0 M568 P0 R0 S0 ; set initial tool #0 active and standby temperatures toTry following this doucmentation:
https://docs.duet3d.com/User_manual/Connecting_hardware/Sensors_endstops#test-endstop-switches
and then:
https://docs.duet3d.com/en/User_manual/Connecting_hardware/Sensors_testing