How to use DHT Sensor via banana pi

How to use DHT Sensor via banana pi, DH11 ,DH22

support Banana Pi m1/m1p, m2p m2m m2u/m2b, m3 m64

code on github:

test on BPI-M64

test on BPI-M2 Ultra

Man, i followed this steps and only return erros like below:

root@srv01:~/downloads/Adafruit_Python_DHT/examples# sudo python3 AdafruitDHT.py 22 276
276
Traceback (most recent call last):
  File "AdafruitDHT.py", line 42, in <module>
    humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.4.0-py3.5-linux-armv7l.egg/Adafruit_DHT/common.py", line 94, in read_retry
    humidity, temperature = read(sensor, pin, platform)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.4.0-py3.5-linux-armv7l.egg/Adafruit_DHT/common.py", line 81, in read
    return platform.read(sensor, pin)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.4.0-py3.5-linux-armv7l.egg/Adafruit_DHT/Beaglebone_Black.py", line 206, in read
    raise ValueError('Pin must be a valid GPIO identifier like P9_12 or GPIO1_28.')
ValueError: Pin must be a valid GPIO identifier like P9_12 or GPIO1_28.

My system is a M3
root@srv01:/# bpi-hw
bpi-m3
root@srv01:/# cat /proc/version 
Linux version 3.4.39-BPI-M3-Kernel (root@8d0b44c8daaa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 SMP PREEMPT Sat May 26 10:03:38 UTC 2018

Could you help me?