fix for dht22 spikes and other fixes