This is linux code to read the AR844 Smart Sensor sound level meter.
It polls the usb device (yes polls) every 500ms. It accumulates the results for one minute then publishes the avg/min/max to the MQTT topic tele/HOSTNAME/ar844/data.
It uses mosquitto, and libusb-1.0 libraries.
I use this with a Pi Zero W to remotely monitor noise.
There is no configuration, that's all in the code at the moment. The sound meter can be configured at startup - eg Weight A/C, speed slow/fast, etc.
http://www.franksworkshop.com.au/wordpress/2020/01/25/ar844-sound-meter-mqtt-publisher/