+1. motion sprinkler / scarecrow in warm weather. That will be impossible in freezing weather, or you could fit it with heat trace - I don’t think it will work and you don’t want to bust a hose or sprinkler.
Also maybe an electric fence charger with poly tape for visibility. Hopefully he gets curious and touches it with his nose, and learns to leave quickly without taking out the fence. Don’t make it hard to see.
Trash hygiene is most important. No smells or easy-entrances.
I think motion sensors will false a lot but I would absolutely set it up in bear season anyway. Cameras will help you learn his pattern.