so you first installed the sensor and testet the output with
sudo ./dht22 c 22
and
sudo ./dht22 h 22
Please check if your wiring is correct in the wiringPi numbering.
If your sensor is connected to GPIO 22this should work.
Mine does (exept the humidity mostly shows 99.9%, but seems like a sensor issue)
The tutorial you linked is way to complicated in our case. Just do it like it is described in
https://github.com/nebulx29/dht22