humidity function to give usable data