A video doorbell camera attached to an alarm buzzer might work. It must have motion detection, so the dog would set it off, as well as any visitors.