I measured it and I always get 2.46xV. The x fluctuates between 0.004V and 0.006V, so I think I always have almost 2.5V. As I said, no significant changes can be measured.
You meter won't show the audio. It will tend to read the approximate average (about 2.5V) even with the audio coming in.
AnallogRead() will read the instantaneous values and the readings will "look random" because you are measuring a constantly-changing waveform.
But as Mike says, you'll get a bigger range of "random" numbers with louder sound. Your readings should deviate at least +/-100 counts from the ~512 bias but of course that depends on "loudness".
My measurements on A0 (output with Serial.print ()) always give completely arbitrary values.
The code you're showing doesn't display those numbers.
Within what range? Those numbers don't change at all with sound playing? You're hearing sound, right? Is the volume cranked-up?
analogWrite(ledPin1, sensorValue);
A couple of problems here. AnalogRead is 10-bits and it goes from 0-1023.
analogWrite() is 8-bits and it goes from 0-255. If you write a bigger number it will "roll over", you'll loose the 2 most significant bits and it will be totally fouled-up.
And with the 2.5V bias analogRead() will read about 512 with silence.
You can subtract-out the bias, then you can throw-away the negative reading or take the absolute value, or take a moving average of the positive values, or whatever.
Then, you can divide by 4 or [u]map()[/u] the 0-1023 readings to the 0-255 range.
You may not get the full 0-1023 range so you may want to further-manipulate the numbers but analogWrite() should be constrained to the 0-255 range (positive numbers only).