hi the only problem i think is the sensor produces a lot of msg’s the payload being the higher the number the louder the sound .
ie-
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:11,“qos”:0,“retain”:false,“_msgid”:“66c511c50270c278”}
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:8,“qos”:0,“retain”:false,“_msgid”:“8ad526c89fa3a7ec”}
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:5,“qos”:0,“retain”:false,“_msgid”:“e267d2078326d28f”}
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:2,“qos”:0,“retain”:false,“_msgid”:“87a32af3fb4eb3f0”}
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:5,“qos”:0,“retain”:false,“_msgid”:“b8faf0d3ab585026”}
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:8,“qos”:0,“retain”:false,“_msgid”:“0ced26fa1e6a515a”}
2022/10/27 23:41:39Z INFO [msg] {“topic”:“sound_sensor”,“payload”:12,“qos”:0,“retain”:false,“_msgid”:“acd6b7945b7f409d”}
2022/10/27 23:41:40Z INFO [msg] {“topic”:“sound_sensor”,“payload”:8,“qos”:0,“retain”:false,“_msgid”:“0a9771e412d4e1e7”}
2022/10/27 23:41:40Z INFO [msg] {“topic”:“sound_sensor”,“payload”:4,“qos”:0,“retain”:false,“_msgid”:“e886024384eeb695”}
2022/10/27 23:41:40Z INFO [msg] {“topic”:“sound_sensor”,“payload”:7,“qos”:0,“retain”:false,“_msgid”:“75ef602168e714f0”}
2022/10/27 23:41:40Z INFO [msg] {“topic”:“sound_sensor”,“payload”:10,“qos”:0,“retain”:false,“_msgid”:“e687e3922b6d4720”}
2022/10/27 23:41:41Z INFO [msg] {“topic”:“sound_sensor”,“payload”:7,“qos”:0,“retain”:false,“_msgid”:“40455858b48e1d7e”}
2022/10/27 23:41:42Z INFO [msg] {“topic”:“sound_sensor”,“payload”:10,“qos”:0,“retain”:false,“_msgid”:“6b19052430bddac9”}
2022/10/27 23:41:42Z INFO [msg] {“topic”:“sound_sensor”,“payload”:7,“qos”:0,“retain”:false,“_msgid”:“0d9b2bee17eead8c”}
2022/10/27 23:41:42Z INFO [msg] {“topic”:“sound_sensor”,“payload”:4,“qos”:0,“retain”:false,“_msgid”:“259b8ebf10a81937”}
2022/10/27 23:41:42Z INFO [msg] {“topic”:“sound_sensor”,“payload”:8,“qos”:0,“retain”:false,“_msgid”:“0eef823455b93b45”}
2022/10/27 23:41:43Z INFO [msg] {“topic”:“sound_sensor”,“payload”:11,“qos”:0,“retain”:false,“_msgid”:“3ef6e8824dc74639”}
2022/10/27 23:41:43Z INFO [msg] {“topic”:“sound_sensor”,“payload”:14,“qos”:0,“retain”:false,“_msgid”:“24c27d2816db742d”}
2022/10/27 23:41:44Z INFO [msg] {“topic”:“sound_sensor”,“payload”:11,“qos”:0,“retain”:false,“_msgid”:“cbd70c60d16e7813”}
2022/10/27 23:41:44Z INFO [msg] {“topic”:“sound_sensor”,“payload”:7,“qos”:0,“retain”:false,“_msgid”:“2a49fa406c261957”}
2022/10/27 23:41:44Z INFO [msg] {“topic”:“sound_sensor”,“payload”:3,“qos”:0,“retain”:false,“_msgid”:“151d5af6b4d9faac”}
2022/10/27 23:41:44Z INFO [msg] {“topic”:“sound_sensor”,“payload”:6,“qos”:0,“retain”:false,“_msgid”:“5e7e7b12321e51a9”}
2022/10/27 23:41:44Z INFO [msg] {“topic”:“sound_sensor”,“payload”:9,“qos”:0,“retain”:false,“_msgid”:“74f7a11f05d75dc2”}
2022/10/27 23:41:44Z INFO [msg] {“topic”:“sound_sensor”,“payload”:12,“qos”:0,“retain”:false,“_msgid”:“c73fae72bdb9be4f”}