/* This sample code tests your Microphone Module so that you may adjust your Microphone Module Copyright FourierIndustries (fourier.industries) 2017 Licensed under Creative Commons 0 (CC0) license */ void setup() { Serial.begin(9600); pinMode(4, INPUT); //output pin of Microphone Module connect to Pin 4 } void loop() { if(digitalRead(4) == 0) //if noise below therhold, print "0" Serial.println("0"); else Serial.println("Sound detected"); //else, print "1" or "Sound detected" delay(100); }