I am trying to record the sound from the MIC and draw a live graph. I am able to record and draw the graph. The problem is the values that are recorded using the code below are
Try using a higher sampling rate. The maximum is 48000, but 44100 is standard.
Also, it is possible the microphone is just recording background noise.