Upgraded the proximity sensor to the new anchor based framework