You can use it if you put a shield between the contact sensor and the door.
See the below thread for this exact discussion