magnetic safety sensor