def SoundChime():
if globals.ChimeDuration>0:
GPIO.setmode(GPIO.BOARD)
GPIO.setup(globals.ChimeGPIOPin, GPIO.OUT) #Siren pin setup
GPIO.output(globals.ChimeGPIOPin,True) #Chime on
time.sleep(globals.ChimeDuration)
GPIO.output(globals.ChimeGPIOPin,False) #Chime off
time.sleep(1) #1 second
GPIO.output(globals.ChimeGPIOPin,True) #Chime on
time.sleep(globals.ChimeDuration)
GPIO.output(globals.ChimeGPIOPin,False) #Chime off