Thanks for the response. I've been looking at the compiling software and there's a note that says the following:
<blockquote class="Quote">
Filament Runout Sensors
* Mechanical or opto endstops are used to check for the presence of filament.
* IMPORTANT: Runout will only trigger if Marlin is aware that a print job is running.
Marlin knows a print job is running when:
* 1. Running a print job from media started with M24.
2. The Print Job Timer has been started with M75.
* 3. The heaters were turned on and PRINTJOB_TIMER_AUTOSTART is enabled.