[mircemk] shows how to create a simple non-contact proximity sensor using little more than an Arduino Nano board, and a convenient software library intended to measure the value of capacitors.
The iPhone's proximity sensor is one of its handier built-in features ... and then press and hold the power/lock button until you see the Apple logo. On an iPhone 7 or 7 Plus, press and hold ...
In a smartphone, a proximity sensor is located by the phone speaker. It turns off the touch detection during a phone call; otherwise a person's ear would activate functions when pressed against ...