How Proximity Sensors Work: Types, Working Principle and Applications