Joy-IT KY-021
This example will activate a LED if the sensor is close to a magnetic field. The modules KY-011, KY-016 or KY-029 can be used as a LED.KY-021 Mini magnetic Reed module KY-021 Mini magnetic Reed module Contents 1 Picture ................................................................................................................................................................. 1 2 Technical data / Short description ....................................................................................................................... 1 3 Pinout ................................................................................................................................................................... 2 4 Code example Arduino ......................................................................................................................................... 2 5 Code example Raspberry Pi ................................................................................................................................. 3 Picture Technical data / Short description If the sensor is close to a magnetic field, the input pins are connected.