fix for sensors with and without humidity attribute