Permanent magnet motor I was referring to just an everyday hobby type dc motor ......apply a battery and it runs, reverse the battery and it runs reverse.
With the slot type sensors, one uses a vane to interrupt the output from the LED and blocks it arriving at the transistor i.e. turning off...