Arduino based run out sensor that issues custom gcode when tripped- does not need firmware mods


Check out this smart filament sensor:

Only downside is you have to mod your firmware. Octo-print can pause a print so any micro-controller should be able to do the same, correct?

Ideally it would be cool if the a smart run-out sensor could execute custom gcode which would let you:

Pause the print job indefinitely (like you can do on the the Original Prusa MK2).
Cool down the hot end.
Cool down the print bed.

Once you load up a new spool you could manually heat the nozzle / bed and hit a continue button which restart the print at the point is was paused.