See the Pen cara by Alfonso (@sito12) on CodePen.
We create a variable called mic. We call the audio library and tell it to turn on and detect the micro.
We create a variable in the setup to detect the volume of the micro, and then we create another using a map to give more appropriate values to the variable, and finally place it where we want it to augment or decrease according to the volume