How to set up the proximity sensor on Xiaomi Redmi Note 7: the full guide

The Xiaomi Redmi Note 7 is one of the most popular mid-range smartphones, but even it has occasional issues with its proximity sensor. This small but important sensor is responsible for turning off the screen during a phone call when you hold the device to your ear. If the sensor doesn't work properly, the screen can go out spontaneously or, conversely, remain active, leading to accidental tapping and battery discharge.

In this article, we will discuss how to check the operability of the proximity sensor on the Redmi Note 7, perform its adjustment and calibration, and eliminate typical malfunctions, you will learn what tools you need, how to avoid errors in diagnosis and when to contact the service center. Instructions are suitable for all versions MIUI, including the latest updates to 2026.

What is the proximity sensor and how it works on the Redmi Note 7

The proximity sensor is an infrared sensor that detects the distance between a smartphone screen and an object (like your ear).

  • πŸ”¦ Infrared emitter emits invisible light.
  • πŸ‘οΈ Photodiode – captures the reflected signal and analyzes its intensity.

When you hold the phone to your ear, the sensor captures close range and sends a signal to the system to turn off the screen and touchscreen. This prevents accidental taps during a conversation. On the Redmi Note 7, the sensor is located at the top of the screen, next to the front camera and speaker.

If the sensor is contaminated, damaged, or miscalibrated, it can malfunction, for example, the screen will go out even when you just hold the phone in your hand, or it won't shut down at all, which will lead to:

  • πŸ“± Accidental taps on the screen during the call.
  • πŸ”‹ Accelerated battery discharge (screen remains on).
  • πŸ“ž Interrupted conversations due to pressing the button "Complete call".
πŸ“Š Have you encountered proximity sensor problems on Xiaomi?
Yes, the screen doesn't go out during the call.
Yeah, the screen goes out spontaneously.
No, it's working fine.
I don't know how to check that.

How to check the proximity sensor on Redmi Note 7 without additional applications

Before you set up the sensor, make sure it's really the problem, and you can use the built-in MIUI tools to do that.

Method 1: Testing through the Engineering Menu

  1. Open the Phone app.
  2. Dial the combination: ##6484## (or #4636## β†’ "Equipment Testing").
  3. Select Proximity Sensor (Proximity Sensor).
  4. Put your hand to the top of the screen, and the value should change from 5.00 (far) to 0.00 (close).

Method 2: Checking through settings

  1. Go to Settings β†’ About Phone β†’ MIUI version.
  2. Click 7 times on the line with the version to activate Developer Mode.
  3. Back to Settings β†’ Additionally. β†’ For developers.
  4. Find the Debugging by USB and turn it on.
  5. Connect your phone to your PC and use the adb shell dumpsys sensorservice command to see real-time data from the sensor.

πŸ’‘

If the engineering menu doesn't open, try using the Phone INFO app β˜…Samsungβ˜… (which works on Xiaomi too), which shows detailed information about all sensors, including the proximity sensor.

If the sensor does not respond to the approach of the hand or shows incorrect values (for example, always 0.00 or 5.00), the problem may be:

  • 🧹 Sensor pollution (dust, fat, protective film).
  • πŸ› οΈ Damage to the plume after falling or repairing.
  • πŸ”„ Software failure (recalibration needed).

Step-by-step instruction for calibration of the proximity sensor

If the sensor is working but not accurately (e.g., it is delayed), it can be recalibrated, without needing root rights or special programs β€” built-in MIUI tools are enough.

Step 1: Reset the sensor settings

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the phone app and click on it.
  3. Select Warehouse. β†’ Clear the data.
  4. Reboot the phone.

Step 2: Calibration through the Engineering Menu

  1. Type ##6484## and select Proximity Sensor.
  2. Press Calibrate.
  3. Follow the instructions on the screen: Hold and withdraw your hand from the sensor several times.
  4. Once completed, restart the device.

Clean the screen of dust and fat|Make sure there is no protective film on the sensor.|Turn off the case if it covers the top of the phone|Charge your phone at least 50 times%-->

Step 3: Checking after calibration

Call another phone and check:

  • πŸ“ž The screen goes out when you bring it to your ear.
  • πŸ”„ The screen is turned on when the phone is withdrawn.
  • ⏱️ No delay between approach and reaction (up to 0.5 seconds allowed).

πŸ’‘

If calibration didn't work, the problem could be physical damage to the sensor or plume, which requires repairs at the service center.

Typical proximity sensor issues on the Redmi Note 7 and their solutions

Even after calibration, the sensor may not work properly, so let's look at some of the most common situations and how to fix them.

Problem.Possible causeDecision
The screen does not go out during the call.Sensor contamination, software failure, plume damageClean the sensor, recalibrate, reset the settings
The screen goes off spontaneously.Sensitivity of the sensor is overstated, protective film interferesReduce sensitivity in the engineering menu, remove film
The sensor is not responding at all.Damage to the sensor or motherboardDiagnostics at the service center
Delay in operationOutdated firmware, background processesUpdate MIUI, disable battery optimization for the Phone application

Important: Some firmware Xiaomi disables access to the engineering menu. If the code ##6484## doesn't work, use the MTK Engineering Mode app (for MediaTek processors) or the Shortcut Master to find hidden menus.

If the sensor stopped working after the MIUI update, try:

  1. Reverse to the previous version of the firmware.
  2. Reset your settings to factory (don’t forget to make a backup!).
  3. Install Custom Recovery (TWRP) and flash the sensor module separately.
What if the sensor is triggered on the cover?
If the case covers the top of the phone, the sensor may falsely fire: 1. Use a case with a cutout for the sensor. 2. Reduce sensitivity in the engineering menu (value) proximity_delay). 3. Disable the function "Screen during a call" in the settings of the application "Phone".

Software methods for solving sensor problems

If the hardware is good, but the sensor is not working properly, the problem may be in the software. Here are some ways to fix it:

1. Resetting the settings of the "Phone" application

Sometimes crashes occur because of the cache or the data of the app responsible for the calls.

  1. Go to Settings β†’ Applications β†’ Application Management β†’ Phone.
  2. Click Warehouse β†’ Clear the cache and Clear the data.
  3. Reboot the phone.

2. Disable battery optimization for sensors

MIUI aggressively optimizes background processes, which can interfere with sensors, to fix this:

  1. Open Settings β†’ Battery and Performance β†’ Battery Consumption Management.
  2. Select the Apps and find the Phone.
  3. Set up a No Limits mode.

3. Firmware update

Some versions of MIUI had sensor-related bugs. Check for updates:

  1. Go to Settings β†’ About the phone β†’ System update.
  2. Click Check Updates and install the latest version.

πŸ’‘

If the official updates don’t help, try to flash EU-version MIUI It often contains fixes that are not available in global builds.

Cleaning and physical repair of the proximity sensor

If the software methods didn't work, the problem could be physical contamination or damage to the sensor.

1. Sensor cleaning

Over time, the sensor accumulates dust, fat and sweat, which interferes with its operation.

  • 🧼 Use soft lilaless fabric soaked in alcohol.
  • 🚫 Do not use abrasive materials (cotton sticks, hard-coated wipes).
  • πŸ” Gently wipe the area around the sensor (near the front camera).

2. Checking the plume

If the sensor doesn't respond at all, the plume connecting it to the motherboard may have gone off to check this out.

  1. Remove the back cover of the phone (need a mediator and a hair dryer to soften the glue).
  2. Disconnect the battery (required!).
  3. Find the plume running from the top of the screen to the board, and check its fitting density.

⚠️ Warning: Disassembling the phone will void the warranty. If you're not sure about your skills, you should contact the service center.

Replacement of the sensor

If the sensor is physically damaged (for example, after a fall), it will have to be replaced. The cost of a spare part for the Redmi Note 7 is about 300-500 rubles.

  • πŸ”§ Set of screwdrivers (star) T3, T4).
  • πŸ”₯ Hazel-softening.
  • 🧲 Screen suction cup.
  • πŸ“± New proximity sensor (compatible with Redmi Note 7).
Where to buy spare parts for Redmi Note 7?
Original proximity sensors can be found at: - AliExpress (search for "Redmi Note 7 proximity sensor"). - Local areas (Avito, Yula - but be careful with fakes). - Xiaomi service centers (guaranteed original parts, but more expensive).

Alternative ways to control the screen during a call

If the proximity sensor is not repairable but the phone is still working, alternative screen control methods can be used:

1. Disabling the sensor in the settings

If the sensor is not working correctly, it can be turned off completely:

  1. Install the Proximity Sensor Fix app from Google Play.
  2. Open it and select the Disable Proximity Sensor.
  3. Now the screen won’t go out during the call, but you can manually block it with the power button.

2. Use of gestures

MIUI has a Gesture function during the call:

  1. Go to Settings β†’ System settings β†’ Gestures.
  2. Turn on the control option during the call.
  3. You can now move your hand closer to/out of the screen to turn the microphone on/off.

3. speakerphone or headset

If the sensor is not working at all, use:

  • 🎧 Wired or wireless headset (earphones with microphone).
  • πŸ“’ Hands-free (but uncomfortable in public).

⚠️ Warning: Disabling the proximity sensor may cause accidental taps during the call. If you make frequent calls, it is better to repair the sensor or use a headset.

FAQ: Frequently Asked Questions About the Approach Sensor on the Redmi Note 7

Can I calibrate the sensor without an engineering menu?
Yes, you can use apps like Proximity Sensor Reset or Sensor Test from Google Play, which lets you reset the sensor and test it, but you can use the built-in MIUI tools to calibrate it accurately.
Why does the sensor work normally in the test but not work during the call?
This may be due to: Application conflict (e.g., third-party calls); a failure in the Phone app (try to clear its data); energy saving settings (turn off optimization for sensors).
Can I replace the sensor by myself?
Technically, yes, but it requires experience in disassembling smartphones. The main risks are: damage to the screen plume, unplugging of the battery (may cause it to bloat), loss of leakage (dust and moisture will get inside), if you're not sure, you better contact the service.
How to check if the sensor is working on the new Redmi Note 7 before buying?
In the store, you can quickly check the sensor: Dial ##6484## and select Proximity Sensor. Put your hand to the top of the screen - the value should change from 5.00 to 0.00. Call another phone and check if the screen goes out when you approach.
Does the cover affect the approach sensor?
Yes, if the case covers the top of the phone (where the sensor is located), it can cause false positives. Solutions: Use a case with a notch for the sensor. Reduce sensitivity in the engineering menu (parameter) proximity_delay). Turn off the automatic screen shutdown function in call settings.