Many believe harsh scents , like lemon peels or vinegar , are guaranteed to repel dogs, but the truth is that most simply don't work that well . Instead, focus on proven techniques: consistent training when they trespass your yard , utilizing fences like triggered sprinklers – which surprise them – and carefully maintaining a clean environment