beautify code
correct calculation of humidity