With this remix you can use your Ender 2030 endstop switch as a filament runout sensor.
I added the possibility to use a pneumatic fitting on one side (the printer side) to have a stable connection. Put a M6 nut inside the fitting hole and screw the M6 Fitting inside.
May fit 1830 switch (see original author).
I use it with a BTT Octopus Motherboard and therefore made a new cable with 3 strands (Voltage, Ground, Signal) instead of 2.
The author remixed this model.