Sprinkler direct sunlight

Hello,

I have the Wyze Sprinkler mounted outside in a pvc junction box with a plastic clear cover. The sprinkler however is in direct sunlight, does that harm the unit? Or can it withstand the sun?

Thanks