Instructions
KY-037 Microphone sensor module (high sensitivity)
This sensor doesn't show absolute values (like exact temperature in °C or magneticfield strenght in mT).
It is a relative measurement: you define an extreme value to a given normal environment situation and a
signal will be send if the measurement exceeds the extreme value.
It is perfect for temperature control (KY-028), proximity switch (KY-024, KY-025, KY-036), detecting alarms
(KY-037, KY-038) or rotary encoder (KY-026).
Code example Arduino
The program reads the current voltage value which will be measured at the output pin and shows it via
serial interface.
Additional to that the status of the digital pin will be shown at the terminal which means if the extreme
value was exceeded or not.
// Declaration and initialization of the input pin
int Analog_Eingang = A0; // X-axis-signal
int Digital_Eingang = 3; // Button
void setup ()
{
pinMode (Analog_Eingang, INPUT);
Export: 16.06.2017 Copyright by Joy-IT - Published under CC BY-NC-SA 3.0 Page 167 of 214










