When the filament runout sensor not working problem strikes, the fault sits in the filament path, the cable or the firmware switch. Take those three checks in turn, and a quarter of an hour is normally enough to find it.

Quick Answer

Check the filament path first, then reseat the connector at both ends, then confirm the runout feature is enabled in firmware (M412 S1 on Marlin). Test it by pulling filament out of the sensor mid-print: the printer should pause, park the head and wait. A basic replacement switch sensor costs roughly R80 to R250, so the fix is rarely expensive.

🧭 Start with the filament path

A runout sensor is a simple switch, so it only works when the filament pushes the lever or passes the optical gate. Open the sensor housing and watch what happens as you push filament through. The lever should click or the LED should change state. If nothing happens, the filament is probably running past the sensor at an angle or through the wrong hole.

Look at the route from the spool. Sharp bends, a rubbing spool holder or a tube that kinks will make filament bounce off the lever and trigger false pauses mid-print. Keep the path short and straight, and put the sensor between the spool and the extruder, with the filament entering squarely.

Check for debris. Dust, plastic shavings and pet hair in a lever pivot stop it moving. On the Highveld, fine dust gets everywhere, so blow the housing out with a can of air or a small brush every few months. Replacement sensors, tubing and spare parts live under 3D printers and accessories.

🔌 Test the wiring and the switch

Power the printer off and unplug the sensor cable at the sensor and the mainboard. Look at the pins for bent metal or a plastic shell that has slipped. Plug both ends back in firmly. A cable that runs past the hotend or across a moving carriage often has a pinched wire inside, so flex it gently while watching the sensor state in the printer menu.

If you own a multimeter, set it to continuity and touch the two leads to the sensor's signal and ground wires. With the lever pressed the reading should change. Only two wires carry the switch, and a reading that never changes means the switch is dead. A new sensor is cheaper than hours of guessing.

Sensor type matters too. Simple switch sensors only detect presence, while encoder types count filament movement and can detect a jam. The two behave differently, and the logic, normally open or normally closed, has to match what the firmware expects. A mismatch makes the printer think filament is always missing, or never missing.

⚙️ Firmware settings and a proper test

On Marlin, the filament runout feature must be compiled in and enabled, and the pause command must be set. Send M412 to see its status and M412 S1 to switch it on, then M500 to save. In Klipper, check the filament_switch_sensor section of your config, including the pin name and the pause_on_runout option.

Test with a spare length of filament. Start a short print, wait for the first layers, then pull the filament out at the sensor. The printer should stop printing, move the head away and wait. If it keeps printing in mid-air, the sensor signal is not reaching the pause routine. If it parks but will not resume, check the resume macro and the temperatures, since some setups let the nozzle cool during a long pause.

Keep a lightweight spare spool of PLA from the filament range around for these tests, so you are not cutting into a good spool.

Frequently Asked Questions

Why does the sensor never pause my print?

The feature might be disabled in firmware, or the pause command might not be set. Confirm runout detection is on and that the printer actually receives the signal from the switch.

Why does it pause when there is still filament?

Filament that bounces or leaves the lever causes false triggers. Tight bends, a loose spool and a worn lever are the usual reasons, so keep the path straight.

How do I test the switch itself?

With the printer off, check cable continuity with a multimeter, or watch the pin state in the printer menu while moving filament in and out of the sensor.

Could the wiring be the problem?

Often. A loose connector or a pinched wire near the hotend gives intermittent faults. Reseat the plug at both ends and look for damage along the route.

What should the printer do when filament runs out?

It should pause, park the head and wait so you can swap the spool and resume. If it keeps printing in the air, the sensor is not feeding the pause routine.

Ready to keep your prints running without a hitch? Check Evetech's 3D printer and filament categories for replacement parts and fresh spools before your next long job.