Which orientation should I use to install the wireless door and window sensors?

Any orientation will do, provided the distance between the sensor and magnet does not exceed 10mm

ka_installing_config_door_window_sensor_4