Approximation Sensor on Xiaomi: Full Instructions for Setup and Calibration

What is a proximity sensor and why it is needed in Xiaomi smartphones

The proximity sensor is a small but critical component in Xiaomi smartphones that is responsible for automatically turning off the screen during a call. When you hold the phone to your ear, the sensor picks up the obstacle and extinguishes the display, preventing accidental tapping of the cheek or ear. Without this sensor, the screen would remain active, leading to disruptions during a conversation: accidental pressing, transferring the call to the speakerphone or even resetting it.

In Xiaomi smartphones (including the Redmi, POCO and flagship Mi and Xiaomi 13/14), the proximity sensor is usually located at the top of the screen, next to the speaker and the front camera. It works on the basis of infrared radiation: it emits an invisible beam and analyzes its reflection from objects. If the beam returns with a delay or distortion, the sensor knows that there is an obstacle nearby (for example, your ear or case).

The proximity sensor problem is one of the most common complaints of Xiaomi users: the screen may not go out during a call, turn on spontaneously in your pocket or turn off for no reason, most often due to incorrect calibration, sensor contamination or software failures, and fortunately, most faults can be fixed on their own without going to the service center.

How to check the work of the proximity sensor on Xiaomi

Before you set up or calibrate the sensor, make sure it's really faulty. Use built-in MIUI tools or third-party apps to do that. Here are three reliable diagnostic methods:

  • πŸ“± Testing through the engineering menu: dial the phone code ##6484### (or #4636### on some models). In the menu that opens, select Proximity Sensor and check the sensor response by covering it with your hand.
  • πŸ” Third-party apps: Install tools like Sensor Test or Phone Tester from Google Play, which will show the current sensor values in real time.
  • πŸ“ž Practical test: call another phone and see if the screen goes out when you put it in front of your ear.

If the sensor does not respond at all (the test values are always 0 or 5.0 cm regardless of the obstacle), this may indicate a hardware malfunction, such as a plume break or a sensor failure, in which case repair is required. If the reaction is not stable (values jump from 0.1 cm to 5.0 cm for no reason), the problem is more software-based and is solved by calibration.

πŸ“Š How often do you have problems with the proximity sensor on Xiaomi?
Never had a problem.
I used to, but I decided them on my own.
Sometimes the screen doesn’t go out during the call.
Failures are constantly occurring.

Step-by-step: how to calibrate the proximity sensor

The Xiaomi proximity sensor calibration is done through hidden MIUI settings, which resets the current sensor settings and sets new values to match real-world conditions. Importantly, before calibrating, make sure that the sensor is not directly exposed to sunlight and the screen is clean (no film, glass or dirt).

Follow this instruction:

  1. Open the Phone app and enter the code ##6484## (on some models, POCO may work ##4636###).
  2. In the engineering menu, select Proximity Sensor.
  3. Press Calibrate, and the system will suggest that you close the sensor with your hand.
  4. Completely close the top of the screen (where the sensor is located) with your palm and hold for 3-5 seconds.
  5. After the beep, remove your hand. Calibration complete.

If the engineering menu is unavailable or the code doesn’t work, try an alternative method via Settings β†’ About Phone β†’ MIUI version. Click on the line with the version 7-10 times in a row until the developer mode notification appears. Then go back to Settings β†’ Additional β†’ For Developers and find the Calibration of the proximity sensor.

Make sure there is no protective film or glass on the screen.

Clean the top of the display from dirt and dust

Close all applications running in the background

Calibrate indoors in normal lighting-->

Setting the sensitivity of the proximity sensor in MIUI

Some MIUI firmware (especially older versions) have the ability to manually adjust proximity sensor sensitivity, which is useful if the sensor is triggered too late (the screen is late) or, conversely, responds to false positives (for example, in a pocket).

To change the sensitivity:

  1. Go to Settings β†’ System and device β†’ Additional settings.
  2. Select Sensors (on some models, the item may be called Sensor Management).
  3. Find the proximity sensor and tap it.
  4. Move the slider Sensitivity to the position from Low to High:
Sensitivity levelWhen to usePossible side effects
Low.If the screen goes out too early (for example, with a slight tilt of the phone)It may not work when pressed tightly to the ear
MediumOptimal balance for most usersIn rare cases, false positives may occur in your pocket.
Tall.If the screen does not go out during the call, even when pressed tightlyFrequent failures when using covers or protective glass

On the new versions MIUI 14/15 The manual sensitivity setting can be hidden, so you can only calibrate or reset the sensor through the engineering menu. If the problem persists after the changes, try resetting the network settings (Settings). β†’ SIM-maps and mobile networks β†’ Reset network settings, as sometimes conflicts arise due to incorrect communication parameters.

πŸ’‘

If the sensor is still unstable after calibration, try temporarily disabling the Smart Block function in the security settings.

What to do if the proximity sensor does not work after the MIUI update

One of the most common causes of proximity sensor failures is a firmware update, and once a new version of MIUI is installed (especially major updates like the switch from MIUI 13 to MIUI 14), sensor settings can be lost or driver conflicts can occur, and this is what will help you get back up to speed:

  • πŸ”„ Reboot your phone: Sometimes a normal reboot is enough to make the sensor drivers boot correctly.
  • πŸ“₯ Install the update again: go to Settings β†’ The phone. β†’ Update the system and click "Check Updates." If the same version is available, install it on top of it.
  • 🧹 Clear the system cache: in the recovery menu (Switch off) β†’ Hold the power button. + Volume up, select Wipe cache partition.
  • πŸ”§ Reset to factory settings: extreme method if nothing works.

If the problem occurs after upgrading to MIUI 14 or HyperOS, check for firmware beta. In some cases, sensor bugs are only fixed in stable releases that come out 1-2 months after major updates.

If the sensor stopped working after rolling back on the previous version of MIUI, the driver incompatibility may be the cause, in which case only a complete flashing through Fastboot will help, cleaning all partitions.

What if the sensor doesn’t work after reset?
If the reset didn’t work, check the physical condition of the sensor: 1. Check the top of the screen for cracks or dents. 2. Try removing the security glass – sometimes it blocks the infrared signal. 3. Test the phone without a case (especially if it is metal or with magnets). If the sensor is damaged mechanically, you will need to replace it at the service center.

Problems with the proximity sensor due to covers and protective glasses

Many Xiaomi users experience a proximity sensor that fails after installing a cover or protective glass, and the reason is simple: the infrared signal that the sensor emits can be reflected or absorbed by foreign materials, especially critical for:

  • πŸ›‘οΈ Metal covers – they shield the signal, because of which the sensor does not β€œsee” the obstacle.
  • 🧲 Magnet covers – magnetic field can affect the sensor.
  • πŸ”³ Thick protective glasses (from 0.5 mm and above) - they scatter the infrared beam.
  • πŸ–ΌοΈ Film with mirror or matte coating - change the reflection of the signal.

Decisions:

  1. Take off the case and check the sensor without it, and if the problem is gone, replace the case with a model with a sensor cutout.
  2. If you use glass, choose the option with the opening for the proximity sensor (such are sold for most Xiaomi models).
  3. Try recalibrating the sensor with the case/glass installed – sometimes this helps the system adapt to new conditions.

On some models (such as the Xiaomi 13 Pro or Redmi Note 12 Pro+), the proximity sensor is combined with the light sensor, in which case even thin film can affect its operation, if you notice that after installing the protection, the screen becomes dim or the brightness is not adjusted correctly, this is an indirect sign of a problem with the sensors.

πŸ’‘

If the proximity sensor starts to fail after installing the case or glass, in 90% of cases the problem is solved by replacing them with compatible accessories with sensor cutouts.

Software Solutions: Applications for Testing and Correcting the Sensor

If the built-in MIUI tools don't work, you can use third-party apps to diagnose and configure the proximity sensor.

  • πŸ“Š View current sensor values in real time.
  • πŸ”§ Calibrate the sensor by alternative methods.
  • 🚨 Receive notifications of failures in work.

Top.-3 tested applications:

AnnexFunctionsReference
Sensor TestIt shows the values of all sensors, including approximations.Google Play
Phone TesterTests sensors, cameras, speakers and other components. There's calibration.Google Play
Proximity Sensor ResetSpecialized application for resetting the proximity sensor settings.Google Play

Warning: Some apps require root rights to fully calibrate. If your Xiaomi isn't rooted, only use features that are available without additional permissions. Also beware of programs that promise "magic fix" to the sensor - often this is a scam.

πŸ’‘

If you use custom firmware (like LineageOS or Pixel Experience), the sensor problem may be due to the lack of drivers.Try to install a kernel that is compatible with your Xiaomi model.

When repairs are required: signs of sensor hardware failure

If all software methods have been tried and the proximity sensor still doesn't work, the reason is probably hardware.

  • ❌ The sensor does not respond to any obstacles (values in the test are always 5.0 cm or 0).
  • πŸ”₯ The screen goes out or lights up chaotically, with no connection to the phone’s approach to the ear.
  • πŸ’₯ There are cracks or chips on the screen at the top (where the sensor is located).
  • 🌑️ The phone overheats in the upper frame area (may indicate a short circuit in the sensor).

The cost of replacing the proximity sensor in the service center varies from 500 to 2000 rubles depending on the Xiaomi model. On popular devices (for example, Redmi Note 10/11 or POCO X3/X4), repair is cheaper, since parts are common. On flagships (Xiaomi 13 Ultra, Mix Fold), the price can be higher due to the complexity of disassembly.

⚠️ Note: if you choose to replace the sensor yourself, note that on most Xiaomi models it is glued to the screen or integrated into the front camera module.

Before visiting the service center, check if your smartphone warranty has expired. If the phone is warranty, repairs must be free (provided that the breakdown is not caused by mechanical damage). To check the warranty status, go to mi.com/verify and enter your device's IMEI.

FAQ: Frequent questions about the proximity sensor on Xiaomi

Can I turn off the proximity sensor on Xiaomi?
Yes, but it's not recommended. Disabling the sensor will keep the screen from going out during the call, which can cause random taps. If you really need to deactivate it, use the Disable Proximity Sensor app (root rights required) or turn off the feature via the engineering menu (#6484##).
Why does the proximity sensor work in your pocket?
This is because the sensor is too sensitive or the phone is too tightly attached to the fabric. Try: Reduce sensor sensitivity in the settings (if available), recalibrate the sensor. Use a case with a notch for the sensors.
After the phone fell, the sensor stopped working.
Most likely, the sensor or its plume is mechanically damaged, in which case only a replacement at the service center will help, if the phone is warranty and the fall left no visible traces (cracks, dents), you can try to contact the warranty, but there is a risk of failure.
How important is it to update the MIUI for the sensor to work properly?
MIUI updates often include patches for sensor drivers, especially after major updates (for example, when switching to MIUI 14 or HyperOS). If the sensor starts to fail after the update, check for patches in future versions of the firmware. Sometimes bugs are not fixed until 1-2 months.
Can the protective glass affect the approach sensor?
Yes, especially if the glass is thick (from 0.5 mm) or has additional coatings (mirror, matte), the best option is to use glass with a cutout for the sensor or ultra-thin films (0.1-0.2 mm).