According to the experts, bears pretty quickly figure out that even if something weird is going on like lights and noises, nothing actually happens. So it’s not usually a long term deterrent
Check with whoever your local agricultural agent/Expert is for anything specific to your area, including laws about what you can and cannot use. But it looks like one of the most effective deterrent is just a radio that comes onto a talk station with human voices. Nothing else works for this, not music, not crazy noises, but most Bears really don’t want to be around people. Also the radio doesn’t have to be loud, you’re just trying to simulate people talking nearby. So it may be less likely to annoy your neighbors.
Also remember that your detector is going to go off when anything goes by, including deer, raccoon, a person, etc.
Back from my days when camping, bears really don’t like the smell of ammonia. You don’t have to go crazy with this, just wash the outsides of your trash cans with ammonia In a normal concentration or even wipe down a fence along the path.
Good luck! I live in a semi rural area where we hear coyotes quite often, see bobcats every once in a while, and my cousin came face to face with a mountain lion three years ago. The problem with bears is that they’re scavenging, and there’s just so much good stuff (from their point of view) around people’s houses that once you’re on their route they’re hard to get rid of. That’s why talking to the local agent may help, they may know some things about this particular bear and what they like and don’t like.
For example, some individual Bears will avoid places where there are barking dogs, and some don’t. If the one that’s near your house avoids dogs, then that’s another recording you can try.