Solved memory issues.
Added history feature on temperature and humidity values.