New to Arduino Sound detection project

Delta_G:
Your microphone pins seem to include pin 1. That's one of the Serial pins and you're already using Serial. You should avoid pins 0 and 1 when using Serial.

He's put some (incorrect) #define statements just below that where the pins are defined. Or so it seems:

# define microphone 1 pin8

And this is illegal for a 4-element array:

Serial.println(microphoneArray[4]);

OP did you even try to compile this??