How to independently check the proximity sensor on Xiaomi: from codes to disassembly

Approximation sensor in smartphones Xiaomi, Redmi and POCO β€” It's a small, but critically important element that's responsible for turning off the screen during a conversation, and when it goes down, you're faced with annoying problems. The screen goes out arbitrarily, doesn't respond to touch when you ring, or, conversely, stays active in your ear, causing random taps. 80% of the time, users mistakenly blame the firmware or touchscreen, even though the proximity sensor is the one to blame.

This article will help you diagnose a malfunction accurately without going to a service center, and we'll go through all the methods of verification, from hidden engineering codes to hardware testing with disassembly of the housing. You will learn how to distinguish a software failure from a physical sensor breakdown, which Xiaomi models are more likely to suffer from this problem (spoiler: Redmi Note 10 Pro and the other two models are more likely to suffer from this problem). POCO X3 Pro leads on complaints, and what to do if the sensor is really broken. FAQ answering the most common questions, such as whether it is possible to calibrate the sensor yourself and how much it costs to replace it.

1. Signs of a failure of the proximity sensor

Before you check the sensor, make sure it's the one that's the problem, and here are the key symptoms that indicate sensor malfunctions:

  • πŸ“± The screen goes out when you call, even if you don’t bring the phone to your ear (or vice versa – does not go out when you bring it to your ear).
  • πŸ”„ Sensor is triggered with a delay: the screen is turned on only through 2-3 seconds after the phone was withdrawn.
  • 🎯 The touchscreen is blocked randomly, such as when watching a video or in games, if the hand covers the top of the screen.
  • πŸ”¦ In the dark, you can see that the sensor (a small window next to the front camera) does not glow or flicker.
  • πŸ“ž After updating MIUI The screen stopped turning off during calls (a common problem after switching to the screen) MIUI 14+).

If any of these signs are familiar, the sensor needs to be checked, but first, rule out false positives.

  • 🧲 Check if there are magnets or metal objects nearby (they can affect the sensor’s performance).
  • πŸ“± Make sure there is no protective film or glass on the screen covering the sensor area.
  • πŸ”„ Reboot your phone - sometimes glitches MIUI It is solved by a banal reboot.

⚠️ Attention: On Xiaomi models 12T Pro and Redmi. K50 The Ultra proximity sensor is aligned with the light sensor, and if you don't have the brightness of the screen adjusted at the same time, it can be a complex problem.

πŸ“Š Your Xiaomi smartphone has ever been bugged with a proximity sensor?
Yes, the screen doesn't go out during the call.
Yeah, the screen goes out on its own.
No, it's working fine.
I don't know how to check that.

2. Check the sensor through the engineering menu (codes ##)

The fastest way to diagnose is to use hidden service codes, which work on all Xiaomi smartphones regardless of model and version. MIUI. You don’t need root rights or special apps.

Open the Phone app and enter one of these codes:

  • ##6484## is a test of the proximity sensor (on some models).
  • ##4636## β†’ Phone information β†’ Scroll down to the Sensor Block.
  • ##2664## - Alternative sensor test (works on the sensors) POCO old Redmis).

Once you enter the code, you'll see a screen with a graph or a digital value, and here's how to interpret it:

Indicator.Normal value.What does deviation mean?
Proximity sensor (value)0 (sensor not closed) / 1 or 5 (sensor closed)If the value does not change when closing the sensor with your hand, the sensor is defective.
Color of the chartGreen (working) / Red (failure)Red or no reaction is a sign of a breakdown.
Max range5-8 cm (depending on model)If less than 2 cm, the sensor is β€œblind”, it requires calibration.
Delayed responseLess than 0.5 seconds.More than 1 second – a lag sensor or software bug.

On some firmware (e.g, MIUI Global 14.0.4) can block the engineering menu, in which case use an alternative method - applications for testing sensors.

πŸ’‘

If the ##4636### code doesn’t work, try typing it into the Calculator app (yes, that’s no joke – it works on some Xiaomi models!).

3. Testing with third-party applications

If the engineering menu is not available or you want more detailed information, install one of these apps from Google Play:

  • πŸ“± Phone Doctor Plus – Shows the status of all sensors, including approximations, with real-time visualization.
  • πŸ” Sensor Test – a minimalist tool with graphs and digital values.
  • πŸ› οΈ CPU-Z β†’ Sensors tab – displays the sensor’s technical data (model, range, current state).
  • πŸ“Š DevCheck – detailed information about the hardware, including the type of proximity sensor (e.g, STK3338 or APDS-9960).

How to check the sensor in Phone Doctor Plus:

  1. Open the app and select Sensor Test.
  2. Find the Proximity Sensor line.
  3. Close the sensor with your hand – the status should change from Far (far) to Near (close).
  4. Remove your hand - status should return to Far.

If the status is unchanged or the application shows an error (e.g. Sensor not available), this may mean:

  • πŸ”Œ Sensor is physically disabled (problem with plume).
  • πŸ“± Software failure after update MIUI.
  • πŸ› οΈ The sensor is contaminated or closed with protective glass.

Remove the phone case|Wipe the sensor area with a dry wipe|Turn off the energy-saving mode.|Close all background applications-->

4. Testing of the sensor without software (mechanical test)

If you don't have access to an engineering menu, or you don't want to install third-party apps, you can physically check the sensor. You only need a hand and a light source.

Step 1: Visual verification

Put a flashlight on the top of the screen (near the front camera).

  • πŸ”¦ Two small windows: one for the proximity sensor, the second for illumination.
  • πŸ’‘ When you bring your hand to the proximity sensor, it should flicker slightly or change color (this is an infrared LED, invisible to the eye, but some cameras fix it).

Step 2: Test with a bell

  1. Call your phone from another device.
  2. Take the call and hold your hand to the top of the screen (without closing the microphone!).
  3. The screen should go out in 0.3-0.5 seconds.
  4. Remove your hand, the screen should turn on immediately.

Step 3: Sensitivity testing

If the screen goes out only when the sensor is completely closed (for example, with the palm of your hand), but does not respond to a slight approach, this is a sign of contamination or wear of the sensor.

⚠️ Note: On Xiaomi Mi 11 and newer models, the proximity sensor can be hidden under the display (Under-Display Sensor technology.

5. Diagnostics with disassembly of the phone (for experienced users)

If all previous methods have failed and the sensor is clearly not working, you can test it hardwarely, which requires accuracy and is only suitable for those who are willing to risk the warranty (if it is still valid).

You'll need:

  • πŸ”§ Set of screwdrivers (star) T3, T4).
  • 🧲 Plastic blade for opening the body.
  • πŸ” Loop or flashlight (small sensor, easy to miss).
  • πŸ“Έ Phone camera for fixing the location of plumes.

Step-by-step:

  1. Turn off the phone and remove it. SIM-map.
  2. Heat the back cover with a hairdryer (60–70Β°C) to soften the glue.
  3. Carefully tuck the lid with a plastic spatula, starting at the bottom edge.
  4. Unscrew the screws that hold the metal plate over the battery.
  5. Find the proximity sensor plume – it goes from the top of the motherboard to the front camera.
  6. Check if the plume has moved away from the connector. If so, gently plug it back in.
  7. Examine the sensor itself for contamination or physical damage (cracks, oxidation).

If the sensor is externally serviceable but does not work, the problem may be:

  • πŸ”Œ Damaged plume (check for tears).
  • πŸ“± Faulty motherboard (requires diagnosis in the service).
  • πŸ”„ Firmware failure (try resetting or reflashing your phone).
What to do if the sensor plume is severed?
If the plume is removed from the connector, it can be soldered back neatly, but it requires experience with a soldering station and a microscope. Without skills it is better to contact the service - the cost of repairing the plume in official Xiaomi centers starts from 1,500 rubles. In informal workshops, the price may be lower (800-1,200 rubles), but the risk of poor-quality repairs is higher.

Calibration of the proximity sensor (if it is not working correctly)

Sometimes the sensor isn't broken, it's just calibrated. This often happens after the phone drops, updates. MIUI Or resetting the settings, and calibration can get it back to normal.

Method 1: Through the Engineering Menu

Enter the code ##6484## and select Proximity Sensor Calibration. Follow the instructions on the screen - usually close the sensor with your hand, wait for the signal, and then remove your hand.

Method 2: Using the application MIUI Hidden Settings

  1. Download the app from Google Play (required) MIUI 10+).
  2. Open the Sensors section.
  3. Find Proximity Sensor and press Calibrate.
  4. Hold and remove your hand from the sensor 3-5 times as indicated in the instructions.

Method 3: Manual calibration (for advanced users)

If standard methods do not help, you can calibrate the sensor through ADB:

adb shell settings put system proximity_delay 100


adb shell settings put system proximity_offset 0

These commands reset the sensor's delay and offset. After you type in, restart the phone.

⚠️ Note: On Xiaomi 13 Pro and Redmi models K60 manual calibration may reset after update MIUI. If the problem comes back, repeat the procedure or roll back the firmware to the previous version.

πŸ’‘

Calibration only helps with software failures, and if the sensor is physically damaged (crack, oxidation, plume break), the calibration will not work, either repair or replacement.

7 What to do if the sensor is broken: repair or replacement

If all tests show that the sensor is faulty, you have three options:

OptionCost (β‚½)PlusesCons
Official Xiaomi service1 500 – 3 5006-12 months warranty, original partsLong (3-7 days), expensive
Informal service800 – 2 000Fast (1-2 hours), cheaperRisk of poor quality spare parts, no guarantee
Self-sustaining replacement300 - 1,000 (part)Minimum costs, experience of repairThe risk of damaging your phone is difficult without tools.

The cost of the spare part depends on the model:

  • πŸ“± Redmi Note 10/11: sensor + plume β€” ~500 β‚½.
  • πŸ“± Xiaomi 12/13: sensor-and-camera β€” ~1 500 β‚½.
  • πŸ“± POCO F3/F4: sensor β€” ~400 β‚½.

Where to buy spare parts:

  • πŸ›’ AliExpress is cheaper but long (2-4 weeks of delivery).
  • πŸ›’ Beru.ru or Ozon – faster, but more expensive by 20-30%.
  • πŸ›’ Local parts stores (search for β€œapproximation sensor [phone model]” on request]Β»).

If you want to change the sensor yourself, you should:

  • πŸ“Έ Take a picture of all the plumes before disconnecting.
  • πŸ”§ Use an antistatic bracelet or touch a grounded object regularly.
  • πŸ”₯ Do not overheat the fee with a hair dryer - maximum temperature is 80Β°C.

FAQ: Frequent questions about the proximity sensor on Xiaomi

πŸ” Can I turn off the proximity sensor if it interferes?
The sensor is switched off via the engineering menu (#4636## β†’ Phone Information β†’ Disable Proximity Sensor or applications like MIUI Hidden Settings, but without a sensor, the screen won't lock during calls, leading to random taps.
πŸ“± Why the sensor stopped working after the update MIUI?
This is a common problem, especially when it comes to moving to MIUI 13/14. The reason is a firmware bug that resets the sensor settings. Solutions: Reverse to the previous version. MIUI Fastboot. Reset to factory settings (Settings) β†’ The phone. β†’ Reset settings. Wait for the patch (usually comes out through 1–2 Weeks after Mass Complaints).
πŸ’‘ How to check if the protective glass does not block the sensor?
Remove the glass and repeat the test with a call. If the sensor is running, there is a problem in the glass. Solutions: Buy glass with a notch under the sensor (look for models marked "For Xiaomi with a proximity sensor"). Carefully cut the hole above the sensor with a stationery knife. On Xiaomi Mi 11 Ultra and Redmi K40 sensor is hidden under the display - in this case, the glass does not interfere.
πŸ”§ How much does it cost to replace the sensor in the official Xiaomi service?
Cost depends on the model and region: Redmi Note 9/10: 1 500 – 2 000 β‚½. Xiaomi 11T/12: 2 500 – 3 500 β‚½ (Often change the entire module with the front camera). POCO X3/X4: 1 200 – 1 800 β‚½. Duration of repairs β€” 3–7 - The job security β€” 6 months, part time β€” 12 months.
πŸ› οΈ Can I repair the proximity sensor myself?
Yeah, if you've got experience disassembling phones: ⭐ Redmi 9A/8A: simple (sensor on a separate plume, easily accessible). ⭐⭐ POCO X3: medium difficulty (the battery must be disconnected). ⭐⭐⭐ Xiaomi 13 Pro: complex (integrated into camera module, high risk of damage to plumes) T3–T6. Plastic blades for opening the case, dryer for softening the glue (temperature not higher than the temperature). 80Β°C).