Sound Pressure Level library code

Dear All,

I need your help and consideration. I am not familiar with electrical and computer programming subjects and I will be so grateful if you could kindly help me.

I am going to create a small Microcontroller board based on Arduino Uno R3 which has temperture, illumination and Sound Pressure Level . Regarding the mentioned sensors, I use DHT11, BH1750 (GY-30) and a microphone.

Regarding temperature and illumination code in fritzing program , I will use arduino library code. For the audio, I should write a few lines of code that compute input root mean square (RMS) , and then convert that RMS to db.

Also, I should know the voltage level output (of AO) at a certain amount of decibel, to be able to do my conversion. Would you please guide and help me by offering any information to do it.

Yours sincerely,

I'd think that you'll find some bar graph project for converting an audio signal level into digital values. In most cases some external circuit will detect (hold) the peak level of the signal. The determination of the ratio between the measured level (it's a voltage!), and the sound pressure level depends widely on your microphone and related circuitry, so you have to calibrate your device yourself.