Fixed a bug where humidity values only got stored if higher than previous