Duet board Orbiter Filament Sensor setup Wiring: Blue: GND Red: 3.3V Green: Zstop Yellow: Should be connected to a free Stop pin, I have used the Stop10(ENC_B) pin //add in config.g file: M591 D0 P1 C"!zstop" S1 ;set filament sensor switch for extruder 0 M950 J1 C"^connlcd.encb" ;define logical input for filament load/unload M581 P1 T2 S0 R0 ;define trigger for filament auto load/unload macro to trigger2.g //The limitation of this macro is that when you run out of filament during print you cannot use the button on the filament sensor. You have to create a macro for filament unload and run it from your screen. //Go to Files/System and create trigger2.g file. Insert the following content: if sensors.filamentMonitors[0].status == "ok" ;Auto unload filament macro. Press button then wait for unloading. T0 ; select tool 0 M300 S4000 P100 ; play beep sound M291 P"Filament unloading!" S0 T3 ; display message M109 S210 T0 ; set hotend temperature and wait G0 E-5 F3600 ; extract filament to cold end G4 S3 ; wait for 3 seconds G0 E5 F3600 ; push back the filament to strive stringing G0 E-15 F3600 ; Extract fast in the cold zone G0 E-70 F300 ; continue extraction slow allow filament to be cooled enough before reaches the gears M104 S0 T0 ; set hotend temperature to 0 M291 P"Filament unload complete!" S0 T3 ;display message else ;Autoload filament macro. Press button then insert filament to load T0 ; select tool 0 M300 S2000 P100 ; play beep sound M291 P"Insert filament!" S0 T3 ; display message M302 P1 ; enable cold extrusion G4 S5 ; wait for 5 seconds to insert filament G1 E15 F500 ; load filament inside the gears M109 S235 T0 ; set hotend temperature and wait G1 E110 F500 ; extrude 110mm, you may need to reduce speed for very soft TPU M104 S0 T0 ; set hotend temperature to 0 M302 P0 ; disable cold extrusion M291 P"Filament autoload complete!" S0 T3 ; display message