Sensor description: https://github.com/bigtreetech/smart-filament-detection-module/blob/master/V2.0/Manual/SFS%20V2.0%20User%20Manual_20231123.pdf
The sensor allows you to stop printing not only when the filament runs out, but also when it gets tangled or clogged in the extruder.
One signal wire is connected instead of the standard sensor, and for the second signal wire, you need to either install a new connector on the main MCU board (as described in the comments to the original model) or pull the signal wire to the existing connector on the nozzle MCU.
Also, you have to change printer.cfg, for example like this:
[filament_switch_sensor filament_sensor]
pause_on_runout: false
switch_pin: PC15
runout_gcode:
RESPOND TYPE=command MSG="--- Filament broke, odnako! ---"
beep
M600
[filament_motion_sensor filament_sensor_2]
switch_pin: ^nozzle_mcu:PA10
detection_length: 7
extruder: extruder
pause_on_runout: false
runout_gcode:
RESPOND TYPE=command MSG="--- Filament jammed!!! ---"
beep
beep
beep
M600
Special thanks to Nikorn for the main idea.
The author remixed this model.
Added a lower "mount" and slightly changed the shape of the main part.