Hi
I've used the contact sensor example
I've connected the contact pin to gpio and I pulled it up using 100k ohm resistor
However when I close the contact sensor it's working perfectly and changing the state but when I open it it do nothing
It's only changing the state back if I connect the gpio pin (contact pin) to 3.3v again
My question it's a hardware issue or thers something like loop to keep checking if the contact pin is high or low and update accordingly
Hi I've used the contact sensor example I've connected the contact pin to gpio and I pulled it up using 100k ohm resistor However when I close the contact sensor it's working perfectly and changing the state but when I open it it do nothing It's only changing the state back if I connect the gpio pin (contact pin) to 3.3v again My question it's a hardware issue or thers something like loop to keep checking if the contact pin is high or low and update accordingly