Painting is not recommended for scenarios where humidity readings are important because the humidity sensors can be contaminated by solvents which can cause them to lose accuracy. If only temperature or pressure readings are of concern, painting should not pose a problem, as long as the device is protected to prevent paint from entering the case.