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

Proximity APIChecking...
State-
Distance-

Call test

  1. 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?
  2. Move the phone away from your ear. Does the screen come back on within a second?
  3. 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

  1. 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.
  2. 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.
  3. Answer each step. If the screen misbehaves, clean the top of the screen, remove the protector and repeat.
  4. 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.

PhoneCode or pathWhat to look for
Samsung Galaxy*#0*#, then SensorProximity turns the screen green and vibrates when covered
Xiaomi, Redmi, POCO*#*#6484#*#* (CIT menu)Proximity sensor test with near and far values
Google PixelNo public codeUse the call test
iPhoneNo codeUse 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?
Make a call, hold the phone to your ear or cover the top edge with your hand, and check that the screen turns off; then move it away and check the screen comes back. The steps on this page give a verdict.
Why does the live reading say "Not exposed"?
Browsers removed the proximity events years ago for privacy and battery reasons, and only a few test builds expose the newer sensor API. Your phone still has the sensor, and the call test checks it.
Can a screen protector block the proximity sensor?
Yes, it is the most common cause. Thick, dark or privacy protectors and those with a dust cut-out in the wrong place block the infrared light. Peel the top back and test again.
Where is the proximity sensor on my phone?
Near the earpiece at the top of the front, often beside the front camera. On thin-bezel phones it sits under the screen and is not visible.
Does the proximity sensor test work on iPhone?
Yes, the call test works on any phone. iPhones have no hidden test menu, so if the call test fails after cleaning and removing the protector, Apple or a repair shop can run diagnostics.
Is it the same as the light sensor?
No, though they often share a module. The light sensor sets the screen brightness; the proximity sensor detects your ear. A screen repair can break either.
Embed this proximity sensor test on your site

Free for any site. Copy the code into your page; the tool runs inside the frame without ads. Please keep the credit link under it. All embeddable tools.

Last updated