Some of our temperature and humidity sensors live in a nice (blue) Ikea cup for protection against direct exposure to weather / rain. However, good rain protection does not necessarily mean good sun protection: With direct sun light on the cup, it acts like a green house so you have to shadow it.
Other (better?) trials
This weather house (also blue ;]) probably works better for protecting against direct sun exposure: