Proximity Sensor and ARkit

Vertical place detection in ARkit is not very good so I am using proximity sensor to place find vertical plane. The UX is as follows,


1. ask user to place front of the device on the wall

2. when the proximity sensor is triggered make a vertical plane using AR Camera transform


The issue that I am currently facing is that when front sensor is triggered, everything comes to a halt. All the Core Motion sensors and render methods for ARSCNViewDelegate calls stop. This causes the world origin to move from its origin point and make the placed item also move with it. Is there a way to get proximity sensor data without shutting down everything? Is there a better way to place vertical items?