Code
Code
void setup() {
pinMode(soundSensorPin, INPUT);
for (int i = 0; i < 10; i++) {
pinMode(ledPins[i], OUTPUT); // Set the LED pins as outputs
}
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int soundValue = analogRead(soundSensorPin); // Read the analog input value