Sharp IR distance sensor as a "button"

Thanks a lot, I'm going to try it today :slight_smile:

I dont know yet what my threshold is, but I'm going to test it today. And I guess I should just use the number I get from that test.

So if this works, should I just replace the int ledPin = 10 and the other ledPin with the keyboard output I'm going to use? I opened a keyboard and took the keyboardchip out.