DHT22 Sensor fluctuation in TEMP and HUMID values

HI All,

I recently found some code from GITHUB that would allow me to interface a DHT22 sensor to the BBB using C code. Everything compiles fine however the sensor outputs for temperature and humidity vary by factors of 2 and are too high. I just can’t receive a consistent reading. Has anyone ever encountered this? Any input would be appreciated.

Used the code found here: https://github.com/NunoValverde/DHT22_Beagle