Principles and characteristics of temperature and humidity sensors