Magnetically actuated safety sensors