All of the electric and solar power windows come with a rain sensor so it will automatically close when it senses rain.