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