Why should the sensor not get wet?

The upper sensor is not waterproof, because it has small openings to measure temperature and relative humidity.