First Script Version (working to detect noise but no alert is sent)