I'm trying to read the status of a PIR detector using:
but it is always showing the the port is high, whether something is in front of it or not. Do I first have to designate that the port is in input port, and if so, how do I do this? If that is not the issue, any suggestions?
Thanks for anyone willing to assist.