KY037: High Sensitive Microphone Module Posted by: admin , April 25, 2014 int Led=13; int Shock=3 int val; void setup() { pinMode(Led,OUTPUT); pinMode(Shock,INPUT);// } void loop() { val=digitalRead(Shock); if(val==HIGH)/ { digitalWrite(Led,LOW); } else { digitalWrite(Led,HIGH); } } Share! Tweet admin About the author Please enable JavaScript to view the comments powered by Google+. Loading Facebook Comments ... Please enable JavaScript to view the comments powered by Facebook. Leave a Reply Cancel replyYou must be logged in to post a comment.