Intelligent sensor of temperature and humidity