If you want to control old Rover, the dog lovers hate you. Here are some tips you might find useful. Cats don't like it. These are available at garden centres or through mail order catalogues. Dogs are variable on water - some hate being sprinkled while others will see it as an invitation to romp.
Scarecrow also controls squirrels, mailmen and wayward husbands.
Pest control centres advertise and sell these ultrasonic gizmo's that apparently put out a high pitched sound that humans can't hear but dogs and cats find offensive. I have some radio listeners that swear by these things. I've never used them myself. The better ones are controlled by motion detectors so Fido and Socks don't get used to the sound. Never found one that works.