Ultrasonic repellents work for some pets but not for all. Ultrasonic repellents aren't as reliable as dog repellent sprays.
Different dogs react differently to sounds, which can frighten or irritate some dogs. However, they can be a good option for those who don't want to keep buying dog repellents every week or so.