How to independently check the proximity sensor on Xiaomi smartphones: from tests to repair

Why Xiaomi’s proximity sensor is failing and how to determine it

The proximity sensor in Xiaomi smartphones (including the Redmi, POCO and Mi lines) is responsible for automatically turning off the screen during a call when you hold the phone to your ear. If it doesn't work correctly, you'll encounter accidental cheekstrokes, inability to complete a call, or, conversely, an eternally burning display at the temple. The causes of failure range from software failures to physical damage: moisture under the glass, falls, factory defects, or even banal contamination of the infrared sensor.

The first sign of a malfunction is that the screen doesn't go out when you call, even if you hold the phone tightly to your ear. The second alarm is that the display turns off arbitrarily when you just hold the smartphone in your hand. In rare cases, the sensor is triggered with a delay of 2-3 seconds, which makes conversations uncomfortable. Before carrying the device to the service center, it is worth checking the performance of the sensor yourself, it will take no more than 5 minutes.

In this article, we'll look at 5 reliable diagnostic methods, from hidden engineering menus to specialized applications, how to interpret test results, what to do when software failures and when it's time to contact the wizard. And if your Xiaomi is still guaranteed, we'll show you how to save it when you check.

Method 1: Checking through the engineering menu (without root)

The most accurate method is to use a hidden engineering menu that is on all Xiaomi smartphones, which allows you to test the proximity sensor in real time, seeing its reaction to obstacles. Importantly, the codes for calling the menu differ depending on the processor (Qualcomm, MediaTek) and the version of MIUI.

For devices on Qualcomm Snapdragon (most flagships Mi and POCO F-series):

  1. Open the Phone app.
  2. Enter the combination: ##6484###.
  3. Select Proximity Sensor (or Approximation Sensor).
  4. Cover the top of the screen with your hand – the value should change from 5.00 to 0.00.

For smartphones on MediaTek (Redmi Note 8/9/10, POCO M-series):

  1. Enter the phone app: ##36446337##.
  2. Go to Hardware Testing β†’ Sensor β†’ Proximity Sensor.
  3. Check the reaction: cover the sensor with your finger – the numbers should jump between 1 (there is an obstacle) and 0 (there is no obstacle).

⚠️ Note: Not all codes work on new versions MIUI 14+. If nothing happens after entering the combination, try the alternative method in the following section.

πŸ“Š What kind of Xiaomi smartphone do you have?
Redmi Note
POCO
Mi (flagship)
Redmi (budget)
Other

Method 2: Testing with Sensor Test (Play Market)

If the engineering menu is not available, use third-party utilities. Innovative Apps' Sensor Test app (available on Google Play) shows the status of all sensors, including the proximity sensor, and its advantage is visualization of data in the form of a graph, which simplifies analysis.

Instructions:

  1. Install Sensor Test from the Play Market.
  2. Launch the app and find the Proximity tab.
  3. The screen will display a scale with two states: FAR (no obstacle) and NEAR (there is an obstacle).
  4. Raise your hand to the top of the screen (where the auditory speaker is located) – the status should change instantly.

What do the results mean?

  • 🟒 The status changes quickly: the sensor works correctly.
  • 🟑 1-2 seconds delay: possible contamination or weak plume contact.
  • πŸ”΄ Status does not change: the sensor is faulty or disabled at the software level.

Make sure there is no protective film in the sensor area on the screen |

Close all background applications |

Turn off the power saving mode |

Check that there is no magnet case on the phone.-->

Method 3: Checking by call (quick test)

If you need to check the sensor urgently without installing apps, use a standard phone module, which doesn't give you accurate numbers, but it helps you detect gross malfunctions.

How to run the test:

  1. Call another phone (or use the code ##4636## to call the test menu).
  2. Take the call and hold the smartphone to your ear.
  3. The screen should be instantly turned off (within 0.5 seconds).
  4. Take the phone away from your ear, the display should light up again.

Typical problems with this test:

  • πŸ“΅ The screen doesn't go out: the sensor doesn't pick up the obstacle, cause: pollution, plume damage, or software failure.
  • πŸ”„ The screen flashes: the sensor is random, often involving moisture or mechanical damage.
  • ⏳ Delay more than 1 second: Requires sensor cleaning or flashing.

πŸ’‘

If the screen doesn’t go out only in certain apps (like WhatsApp), the problem isn’t with the sensor, but with the settings of the specific software. Check the permissions for the microphone and phone in Settings β†’ Apps.

Method 4: Diagnostics through ADB (for advanced users)

If standard methods fail, you can read the raw sensor data through the Android Debug Bridge (ADB), which requires you to connect the phone to your computer, but it gives you the most accurate information.

Instructions:

  1. Turn on Developer Mode on Xiaomi: go to Settings β†’ About Phone and 7 times click on the MIUI version.
  2. Return to Settings β†’ Additional β†’ For developers and activate Debugging over USB.
  3. Connect your phone to your PC, install ADB Tools and execute the command:
adb shell dumpsys sensorservice

In the output, find the proximity string. Notice the handle parameter (e.g. handle=5).

adb shell cat /sys/class/sensors/proximity/proximity_raw

When you cover the sensor with your hand, watch the change in values. Normally, they should jump between 0 (obstacle) and 5 (free).

⚠️ Note: Some Xiaomi models (e.g. Redmi Note) 11) The path to the sensor file may be different. If the command doesn't work, try the adb shell cat. /sys/bus/iio/devices/iio:device*/in_proximity_raw.

Method 5: Visual inspection of the sensor

Sometimes the problem isn't with electronics, but with the clutter, and the proximity sensor on Xiaomi is next to the front camera and the auditory speaker, which is a small circular hole (or two on some models) that emits and receives infrared signals.

What to check:

  • πŸ” Dust and dirt: Use a soft brush or compressed air (a canister to clean the technique) to remove particles from the hole.
  • πŸ’§ Moisture: If the phone fell into the water, the sensor could oxidize.
  • πŸ›‘οΈ Protective glass/film: some films block the IR signal. Try to remove it and repeat the test.
  • πŸ”§ Mechanical damage: cracks in the glass above the sensor or dents in the case can distort the signal.

On Xiaomi models with AMOLED-screens (e.g. Mi 11, POCO F4) The proximity sensor is often integrated into the display, and in this case, visual inspection is useless, and software diagnostics are required.

What does the proximity sensor look like on popular Xiaomi models
Redmi Note 10/11: two small holes to the left of the speaker. POCO X3/X4: one round hole to the right of the camera. Mi 11/12: hidden under the screen, not visible. Redmi 9/9A: one hole above the speaker, often covered by a grid.

Table: Common faults and their solutions

Symptoms.Probable causeDecision
The screen doesn't go out when you ring.Sensor contamination, software failureClean the sensor, reset the network settings (Settings) β†’ SIM-map β†’ Reset)
The screen goes out arbitrarilyDamage to plume, moistureDisassemble phone, check contacts (experience required)
Delayed response 1-2 secondsWeak sensor signal, outdated firmwareUpdate MIUI, calibrate the sensor through the engineering menu
The sensor only works in some applications.Permit conflictReset permissions for a problem application (Settings β†’ Apps β†’ Permissions)
The sensor is not responding at all.Hardware breakdownReplacement of sensor or plume in the service center

What to do if the sensor is not working: a step-by-step plan

If all tests show that the proximity sensor is faulty, follow the algorithm:

  1. Sometimes the crashes are temporary and disappear after the reboot.
  2. Update MIUI. Go to Settings β†’ About Phone β†’ System Update and install the latest version.
  3. Reset the network settings. This will help if the problem is related to the telephony module: β†’ SIM-map β†’ Resetting network settings.
  4. Calibrate the sensor. In the engineering menu (see Method 1), find the Calibration option and follow the instructions.
  5. Check on another launcher. Set the standard MIUI launcher (if you use a third-party launcher) and repeat the test.
  6. If nothing works, you need to replace the sensor or plume, the average cost of repair is 800-2000 rubles depending on the model.

⚠️ Note: On Xiaomi models with a sealed body (for example, Mi 11 Ultra, POCO F5) If you replace the sensor yourself, you'll lose water resistance, and then you'll have to have an authorized service that replaces the adhesives and the gaskets.

πŸ’‘

If the phone is warranty, do not open it yourself! Contact the official service center Xiaomi with the results of your tests - this will speed up the diagnosis and keep the warranty obligations.

FAQ: Frequent questions about Xiaomi's proximity sensor

Can I turn off the proximity sensor if it interferes?
Yes, but it's not recommended. You can turn off the sensor via the engineering menu (in the Proximity Sensor section, select Disable) or using the ADB-Adb shell settings put global proximity_sensor_disabled 1 However, after that, the screen will not go out during calls, which will lead to accidental pressing.
Why does the sensor only work in headphones?
This is normal behavior! With headphones connected (wired or Bluetooth), the proximity sensor turns off automatically, because the phone does not press against the ear. If the screen goes out and with headphones, check the settings in the Phone application β†’ Settings β†’ Calls β†’ Approximation Sensor.
How to check the sensor on Xiaomi without an engineering menu?
Use the Phone Tester app (available from Play Market) or make a test call to another phone. You can also use the code ##4636## β†’ Phone information β†’ scroll down to the Sensor block.
How much does it cost to replace the proximity sensor in Xiaomi?
The cost depends on the model: Redmi Note 8/9/10: 800-1200 rubles (sensor replacement + work). POCO X3/X4: 1000-1500 rubles. Mi 11/12: 1500-2500 rubles (due to the complexity of disassembly). In official Xiaomi services, the price may be higher by 20-30%, but you will keep the warranty.
Can the cover affect the operation of the sensor?
Yes, especially if the case: It has magnetic fasteners (they interfere); it's made of dense material (skin, thick plastic); it covers the top of the screen (where the sensor is located); try to remove the case and repeat the test; if the sensor is working, replace the accessory with a thinner one.