Both have their pros and cons. Deadbolts can be defeated by breaking down your door, but that activates a security alarm. A security alarm can act as a deterrent, but only if the would-be intruder knows it’s there. Perhaps it’s best to use them both to bolster your home security - a deadbolt to make it harder for burglars to break in, and an alarm to alert you and your family in case it happens.