How to check continuity or shorting using arduino
Use a GPIO as output and another one as input, use these GPIOs for probes and while testing if you get a high on the input GPIO then there is contnuity. Use this logic to turn on the buzzer with another GPIO or connect the buzzer to the input GPIO.