Check this extension by @juananton1991
https://community.thunkable.com/t/extension-get-level-sound-microphone/45689