I want to call a function (trigger) that will hide one image, show another image and play a sound. The sound has to play last as it lasts for several seconds locking everything up. When I call the function my alarm sound plays for several seconds then an image is shown showing which sensor has triggered (the original image does