SPL Meter using Wemos D1 mini

The sample rate isn't that critical. High frequencies are normally weak (with natural sounds) and with a real SPL meter they are attenuated in the measurement (A-weighting) to account for the fact that our ears are most sensitive at mid-frequencies.

If your measurements are not weighted you can just find the peaks over a short period of time without worrying about about the sample rate.

There are lots of "complications" that make it impractical, if not impossible, to make an SPL meter for regulatory, health & safety, or legal purposes.

That said, I made an SPL Meter with different hardware. There are lots of comments and notes regarding the complications. (It's very simple and I don't do any weighting.)