Adds debug version of proximity sensor handling.