start = millis(); // millis() Returns the number of milliseconds passed since the Arduino board began running the current program in arduino
reader = 0 ;
n = 0 ;
while (millis() < start + 20 )
{
reader = reader + A.AudioMaxAmplitude/2700.0 ;
n = n + 1 ;
}
reader = reader / n ; // I got an average