The answer to 'how to prevent stink bug' is to use a combination of exclusion, removal, and deterrent methods to keep stink bugs out of your home. First, seal up any cracks, gaps, or entry points around your home's exterior using caulk or weather stripping to prevent stink bugs from getting inside. Next, remove any potential food sources or shelter, such as piles of leaves or firewood, near your home. Finally, use natural deterrents like essential oils, vinegar, or diatomaceous earth around your home's perimeter to repel stink bugs.
If you have a severe stink bug infestation that you can't manage on your own, it's best to call in a professional pest control technician. They have access to more powerful treatments and can provide long-term solutions to keep stink bugs away.