It’s always better to post a link to the page you got the code from, but if you’re going to paste code, make sure you select it afterwards and use the </> toolbar button to format it.
FYI: You posted a really old version of the Aeon Labs Multifunction Siren DTH so some of the features won’t work with the latest version of CoRE.