int micPin = D1; // Analog pin connected to the microphone module int micValue = 0; // Variable to store the microphone value void setup() { pinMode(micPin, INPUT); Serial.begin(9600); // Initialize serial communication at 9600 baud rate } void loop() { micValue = analogRead(micPin); // Read the analog value from the microphone module Serial.print("Microphone Value: "); Serial.println(micValue); // Print the microphone value to the serial monitor delay(500); // Delay for 100 milliseconds }