It's something like this.
It gives either High or Low when only when it is closing the circuit.
Reading already closed circuit does not seem to work.
If I connect to ground it always give LOW no matter if the switch is closed or not.
If I connect to 3.3v, it always give HIGH no matter what.
FYI, I am using 'onoff' nodejs module to do this.
What I am trying to see is that when the circuit is open, it gives LOW, when the circuit is closed, it gives HIGH.
Can it be achieved?