I have tested an LM386 circuit with multimeter and a small speaker so I know it is functional but I can’t read meaningful values with this code
void setup() {
Serial.begin(9600);
}
void loop() {
int soundLevel = analogRead(0) -512;
Serial.print( "soundIn = ");
Serial.println(soundLevel);
delay (1000);
}
I would appreciate advise. Thanks.