Configuration of proximity sensors and its application