At the other ends of the thread, stitch one to ground and the other to a digital input on your FLORA or GEMMA microcontroller.
Don’t forget to activate the internal pull up resistor when you set up your Arduino sketch.
void setup(){ pinMode(1, INPUT_PULLUP); }
Text editor powered by tinymce.