Any tips on reading a GPIO temperature sensor using up to date software on the BPI-P2 Zero?
I’m getting errors running 2020-04-28-raspbian-stretch using Adafruit_Python_DHT and Adafruit-Circuitpython-DHT.
The fork here: How to use DHT Sensor via banana pi gives the error:
Traceback (most recent call last):
File "./AdafruitDHT.py", line 41, in <module>
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/common.py", line 94, in read_retry
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/common.py", line 81, in read
File "build/bdist.linux-armv7l/egg/Adafruit_DHT/Beaglebone_Black.py", line 213, in read
RuntimeError: Error accessing GPIO. Make sure program is run as root with sudo!
The others seem to not recognize the board.