added humidity and fixed arrays