add temperature input smoothing and discard strange values