That is a really good idea. I pretty much did the same exact thing to mount a small maglite on my mountain bike so you can be sure that it is rated to over 100 degrees and handles any amount of humidity.

Luckily I've got a good enough gut instict to not need a radar detector.