Putting DS18B20 outdoors

To avoid heating from Solar Radiation, you need to build what is known as a Stevenson Shield.

It is an enclosure that allows heated air to EXIT whatever container is protecting the sensor from the elements. See examples... you should be able to com up with a waterproof solution without too much trouble.