Banana Pi - temperature measure with DHT22, how to?

Hi,

I want to measure temperature with DHT22, how to do that?

DHT22

Do you have any scripts or library for that? I use Banana Pi M1.