I'm a new to arduino sensor and I have a grove loudness sensor. I want to convert value from AnalogRead to DB
float volt_cal = sensorValue * (5.0 / 1023.0); is the value in volt.
20 * Log10 (Vout / Vin) = dB SPL.
If I take: Vout=volt_cal and Vin=1V is this correct?
Below is the datasheet of the sensor:
Thanks in advance for your help.