Window Sensor Velux roof window

Hello,

does someone has a propper way to detect if our roof windows from velux are open or closed?
We have such a window

Currently I use Aqara Window Sensors with zigbee.
Problem is, that I have condensation water in the lower corners, which destroyed one sensor.

Many thanks

Do you have the electrically operated version?