How does the optional rain sensor work?

How does the optional rain sensor work?

When the rain sensor detects rain, the control will override the normal on/off duration settings and completely close the curtains until there has been no rain detected for 15 minutes.