Used for my Voron 2.4 but can be used on any 2020 extrusion.
This is a remix of an excellent filament sensor found here (with more info and instructions):
https://github.com/VoronDesign/VoronUsers/tree/master/printer_mods/al3ph/filament_runout
The only thing it was missing was an easy way to mount it.
BOM:
1 x microswitch with flat metal lever (with wires, etc)
2 x M2x8 screws
4 x M3x8 Bolts and Nuts
1 x T nut/hammer nut
I printed with supports (touching build plate only) and brim. Good idea to use ABS or better as extrusions will get warm on enclosed printers.
The author remixed this model.