I want to make something to detect whether there's direct sunlight shining on particular place. I thought the obvious approach would be to use a pair of light dependent resistors (LDR) - one located where it will definitely be in direct sunlight (when the sun is shining) and another that is at the location to be tested. Compare the resistances, and the result should be clear enough.
But this means that at least one LDR will be in direct sunlight for extended periods, and I can find nothing in the datasheets to indicate whether the devices will survive that. My concern is UV degradation of the encapsulation material.
I can put them behind glass, which will provide some protection, but even then, they'll have to survive some UV.
Anyone have experience of this?