This is untested! I neither have the magnets, nor my XL!
Thank you @IBNobody_123251 and @Digibike_72103 for your designs and ideas!
Please follow the remix links for instructions! This design is a combination of the two!
You will need:
The author remixed this model.
IBNobody's PTFE Fittings Filament Sensor Remix combined with Digibike's Sensor Magnet (spring replacement) Remix