First we need to import some libraries: from gpiozero import PWMOutputDevice, MCP3008, LED, Button import pygame import time import random Now we need to make our sounds: pygame.init() pygame.mixer.init() dog = pygame.mixer.Sound("dog.wav") hawk = pygame.mixer.Sound("hawk.wav") eagle = pygame.mixer.Sound("eagle.wav") falcon = pygame.mixer.Sound("falcon.wav") and the buzzer siren effect: def buzz(frequency, period): buzzer.frequency = frequency buzzer.value = 0.5 time.sleep(period) buzzer.value = 0.0 def siren(): x=4400 for a in range(4): while x < 4600: buzz(x,0.01) x = x + 10 while x > 4400: buzz(x,0.1) x = x – 10 Last but not least, the loop while True: sounds = (dog.play, hawk.play, eagle.play, falcon.play, siren) sound = random.choice(sounds) if button.is_pressed: with MCP3008(channel=0) as pot: vibe = pot.value if vibe > 0.025: print(vibe) sound() else: pass