The sensor has 3 main components on its circuit board. First, the sensor unit at the front of the module which measures the area physically and sends an analog signal to the second unit, the amplifier. The amplifier amplifies the signal, according to the resistant value of the potentiometer, and sends the signal to the analog output of the module.
The third component is a comparator which switches the digital out and the LED if the signal falls under a specific value.
You can control the sensitivity by adjusting the potentiometer.
Please notice: The signal will be inverted; that means that if you measure a high value, it is shown as a low voltage value at the analog output.
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).
Connections Arduino:
digital signal | = | [Pin 3] |
+V | = | [Pin 5V] |
GND | = | [Pin GND] |
analog signal | = | [Pin 0] |