I would like to connect a sensor door like this (https://es.aliexpress.com/item/32255861 ... 63c0iBdn8C) to my raspberry's GPIO.
Using SYSFS option I set the port with the following steps:
Code: Select all
sudo echo 18 > /sys/class/gpio/export
sudo echo in > /sys/class/gpio/gpio18/direction
sudo echo 1 > /sys/class/gpio/gpio18/active_low
Code: Select all
cat /sys/class/gpio/gpio18/value
What am i forgetting?