A node red node for communicating with the PCB Artists Decibel Meter sensor.
npm install @thehighestbit/node-red-contrib-decibel-meterA Node-RED node for using the I2C Decibel Sound Level Meter Module from PCB Artists.
bash
npm install @thehighestbit/node-red-contrib-decibel-meter
``* I2C Bus - Which i2c bus the sensor is connected to
* Address - i2c address of the sensor, almost certainly 0x48
* Type - If the sensor is Regular or Spectrum Analyzer
* Filter - The type of weighting to use
* Avg time - The averaging time the sensor will use to calculate the dB value
Interval (ms) - The interval between outputs from this node (if 0, then output can only be triggered by sending this node a message with any payload). It will output both the current values and additionally also the min, max and avg of the entire interval. Make sure that interval <= 100 avg time, since the device can only store 100 dB readings at a time.