When there is filament in, the green light in the module keeps lighting. And when the filament is exhausted, the green light goes off, then the motherboard executes the pause command operation, after the replacement of the filament can continue to print.
Wiring: Connect the module to the M-sensor port on the motherboard.