Weird shifting in temperature reading with DHT11

Hello everybody, I'm reading temperature and humidity levels with the DHT11 and an arduino yun, and it seems that after a while it's on it starts reading weird values. For example, this is the log of the temperature reading:

23
139
23
139
23
139
23

It seems that sometimes that 139 pops out for no reason. I have the same issue with the humidity:

40
20
40
20
40
20

Do you have any idea what that might be? I'm using this guide: Wiring up DHT11 Temp & Humidity sensor to the Arduino | Hobbyist.co.nz

Thanks!

timing (he that is an old version of my lib:)

Please try the DHTstable library - Arduino/libraries/DHTstable at master · RobTillaart/Arduino · GitHub

(see example, how to use)