Consumer electronics such as mobile phones also use proximity sensors. The most popular use of the proximity sensor in mobile phone technology is in the form of a touchless interface. This allows the user to interact with the phone by simply waving their hand in front of it, rather than having to press physical buttons.
This kind of proximity sensor is usually called IR proximity sensor. This kind of proximity sensor also prevents the phone from accidental touches and can even be used to detect when the phone is being held up to the user's ear. That's why your phone's screen will turn off when you're on a call.