Magnetic Door Switch

Hello!

Recently, I purchased a magnetic door switch: seeedstudio.com/depot/magnet … th=156_160

I’ve connected one wire to +5V and the other wire to digital input. The result is randomize between 0 and 1.
I’ve seen that this door switch has a logic output, “ON” and “OFF” and it’s necessary swap this logic values to voltage, is rigth?

Thanks and Regards!

Finally, I solved -> forums.adafruit.com/viewtopic.php?f=25&t=18655

Thanks!

Thanks for your sharing. :slight_smile:

Regards,
Steve