I have an indoor Aqara (Zigbee) door sensor attached to my main exterior gate. I sprayed it on the outside with conformal coating, and then sprayed it to match my gate’s color, and it is sitting under direct sun (a lot) and rain (not so much here).
It has been running as a champ for more than a year now. I’m really surprised.