The application shows * closed * when the door is * open * and vice versa. We have already rotated the mobile magnet 180 degrees, reversed the wires of the magnetic sensor and reversed the terminal wires. They made no difference. [Here](https://i.imgur.com/15kITKc.jpeg) is a picture of the setting. As soon as the magnets approach each other in any direction (front, back or up) the application looks open. Any help is appreciated.