Low Filament Sensor

#1
Has anyone every developed or used an existing low filament sensor on their Gmax? I have seen a few out there that will produce an audible alarm but it would be great to find one that would pause the print when doing unattended printing.