Proximity Sensor Test
The proximity sensor turns the screen off when the phone is at your ear, so your cheek does not hang up the call. If the screen stays on during calls, or goes black and will not come back, this two minute test finds out whether the sensor, a screen protector or a setting is to blame.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
Live reading
Call test
- Call your voicemail or a friend and hold the phone to your ear (or cover the top edge by the earpiece with your hand). Does the screen turn off?
- Move the phone away from your ear. Does the screen come back on within a second?
- Clean and uncover: wipe the top of the screen and remove any screen protector or case lip near the earpiece. Done?
Most browsers do not expose the proximity sensor, so the call test is the reliable check.
How to test the proximity sensor
- Open this page on the phone. If Proximity API says Available, tap Read proximity sensor and cover the top of the phone: the state should switch to Near.
- For the call test, ring your voicemail or a friend and put the phone to your ear. Pull it away now and then to see whether the screen went off.
- Answer each step. If the screen misbehaves, clean the top of the screen, remove the protector and repeat.
- Read the verdict. If it still fails, try the hidden test menu codes below or see the fixes.
What the results mean
A working proximity sensor turns the screen off within about half a second when something is 3 to 5 cm from the earpiece, and turns it back on as soon as it moves away. It only works during calls and a few other moments (pocket mode on some Android phones), so the screen staying on outside a call is normal.
- Screen stays on during calls: the sensor does not see your ear. A screen protector, dirt or a case lip is the most common cause; a failed sensor or one lost in a screen repair is next.
- Screen goes black and stays black: the sensor always sees something near. A dark or cracked protector, dirt in the sensor window or a bad calibration causes this.
- Works with the hand, not with the ear: dark hair or skin reflects less infrared, and some phones need the ear close to the earpiece. A slight change in how you hold the phone helps; recalibration helps more.
Browsers hide the sensor from websites, so the live reading usually says "Not exposed". That is not a fault in the phone.
Hidden test menus
Many Android phones have a hardware test menu that shows the proximity sensor directly. Open the Phone app and dial the code. These work only on the brands listed and can change between models and updates.
| Phone | Code or path | What to look for |
|---|---|---|
| Samsung Galaxy | *#0*#, then Sensor | Proximity turns the screen green and vibrates when covered |
| Xiaomi, Redmi, POCO | *#*#6484#*#* (CIT menu) | Proximity sensor test with near and far values |
| Google Pixel | No public code | Use the call test |
| iPhone | No code | Use the call test |
How the sensor works
Most phones use an infrared LED and a detector behind a small window near the earpiece. The LED sends invisible light out; when your ear is close, more of it bounces back and the phone switches the screen off. Newer phones with very thin bezels place it under the display, or use an "ultrasonic" or software sensor that combines the earpiece, the microphones and the touch screen. Those can be less reliable and are more sensitive to screen protectors. The ambient light sensor usually sits next to it: test that with the light sensor test, and read proximity sensor not working for every fix.
Common problems and fixes
The screen stays on during calls
Remove the screen protector or test with it peeled back at the top, and clean the area above the display. Restart the phone. On some Android phones, check Settings for "Pocket mode", "Prevent accidental touches" or a proximity setting in the Phone app's call settings.
The screen goes black and will not come back
Press the power button twice to wake the screen, or put the call on speaker. Then clean the sensor window and remove dark or tinted protectors, which absorb infrared. A crack over the sensor also causes it.
It stopped after a screen replacement
The sensor bracket or the small rubber gasket around it may be missing, or the new screen may lack the infrared window. Ask the repair shop to check the proximity sensor; many need a recalibration after a new screen.
Can I recalibrate the sensor?
Some phones recalibrate in the hidden test menu or reset it with a restart. Others need the maker's service tools. If the call test fails with a clean screen and no protector, a repair is the reliable fix.
Frequently asked questions
How do I test my proximity sensor?
Why does the live reading say "Not exposed"?
Can a screen protector block the proximity sensor?
Where is the proximity sensor on my phone?
Does the proximity sensor test work on iPhone?
Is it the same as the light sensor?
Last updated