dht22 on BBB

I want to use a dht22 Amsong (am2302) temp/rh sensor with BBB. I have tried a few C programs but none seem to work. What language/script would be the best to use for a simple temperature humidity sensor program? Any links to working code would be appreciated!

Thanks