Full sensor check on Xiaomi: from gyroscope to Hall sensor

Sensors in Xiaomi, Redmi and POCO smartphones are responsible for automatic screen settings, gestures, positioning in space and even security (for example, a fingerprint sensor). If your phone starts to behave strangely - the screen does not go out during a call, does not turn when you turn the device or GPS determines the location with a large error - the problem can be hidden in the sensors.

In this article, we will discuss all the ways to check sensors on Xiaomi devices: from built-in tools MIUI You'll learn how to test a gyroscope, an accelerometer, a proximity sensor, light sensor, magnetometer, barometer and other sensors, and what to do if one of them is not working properly. Instructions are relevant for models 2018-2026, including Xiaomi 14, Redmi Note 13 Pro+ and POCO F6.

What sensors are in Xiaomi smartphones and what they are responsible for

Xiaomi’s current devices are equipped with up to 10-15 different sensors, but not all models have a complete set of sensors.

  • πŸ“± Approximation sensor – turns off the screen during a call when you hold the phone to your ear.
  • πŸ’‘ Light sensor – adjusts the brightness of the screen depending on the ambient light.
  • πŸ”„ Accelerometer – determines the position of the phone in space (screen rotation, pedometer).
  • πŸŒ€ Gyroscope – responsible for accurate tracking of movements (used in games, VR, panoramic).
  • 🧲 Magnetometer (compass) – determines the direction north for navigation.
  • 🌑️ Hall sensor – fixes the closure of the case (in models with support for smart cases).
  • πŸ“ Barometer – Measuring atmospheric pressure for more accurate GPS (Not all models are available).
  • πŸ‘† Fingerprint Sensor – Unlock scanner (can be optical or ultrasonic).

On budget models (such as the Redmi A2 or POCO C55), some sensors may not be available. To find out which sensors are installed in your phone, use the AIDA64 app (Sensors section) or enter the service code ##4636## (does not work on all firmware).

⚠️ Note: Some Xiaomi models (e.g. Redmi) 10C or POCO M5) The Hall sensor can be software-enabled to shut down even if it's physically present, and it's done to save battery power.

Method 1: Checking sensors through the Engineering Menu (CIT)

The most reliable way to test sensors is to use Xiaomi’s built-in engineering menu, called the CIT (Comprehensive Interface Test), which is available on all devices with MIUI firmware, but the path to it may differ.

To open CIT:

  1. Open the Phone app.
  2. Enter the code ##4636## or ##2486### (on new models).
  3. Select Testing (or Hardware Testing)
  4. Go to the Sensor Test section.

In the Sensor Test menu, you'll see a list of all the sensors available. Click on each of them to check if they work:

  • πŸ”„ For the accelerometer, tilt the phone in different directions - the values on the X, Y, Z axes should change.
  • πŸŒ€ For a gyroscope, turn the device: the graph should display changes in real time.
  • 🧲 For a magnetometer, hold the magnet - the needle of the compass must react.
  • πŸ“± For the proximity sensor, cover the top of the screen with your hand - the value should change from Far to Near.

πŸ’‘

If the engineering menu doesn't open, try entering the code ##6484## (MTK Test Mode) or ##64663# (Qualcomm Test).

Sensor.Normal performance at CITSigns of malfunction
accelerometerValues vary when tilted, on a flat surface: X β‰ˆ 0, Y β‰ˆ 0, Z β‰ˆ 9.8 (free fall acceleration)The evidence does not change or jump randomly
gyroscopeThe schedule smoothly responds to turnsHanging schedule, jerking or lack of reaction
Approximation sensorSwitch between Far (far) and Near (close)Always shows Far or doesn't respond to your hand
MagnetometerThe compass arrow turns when the phone changes positionThe indications do not change or show the wrong direction

⚠️ Note: On some Xiaomi models (e.g. Redmi Note 12 Pro), the engineering menu may be blocked by the manufacturer).

Method 2: Applications for testing sensors

If the engineering menu is not available or does not show all the sensors, install one of the specialized applications.

  • πŸ“Š CPU-Z (Sensors section – shows the current values of all sensors in real time.
  • πŸ› οΈ Phone Doctor Plus automatically tests all sensors and reports.
  • 🧭 GPSTest - Checks the work GPS, magnetometer.
  • πŸ” Sensor Box for Android – visualizes data from each sensor separately.

Checking with Sensor Box:

  1. Install the app from Google Play.
  2. Open it and select the sensor you want (such as the Accelerometer).
  3. Follow the instructions on the screen (e.g., tilt the phone for the accelerometer test).
  4. If the graph or numbers don’t change, the sensor is faulty.

On models with a Qualcomm processor (such as the Xiaomi 13T), the AIDA64 app can show false alarms of the Hall sensor, even if it is not physically present.

πŸ“Š How do you normally check your sensors?
Through the engineering menu
Third-party applications
Service codes
Never checked.

Method 3: Service codes for diagnostics

Besides the engineering menu, Xiaomi has other service codes that help check individual sensors:

  • πŸ“ž ##0*## - screen test (checks the proximity and illumination sensor indirectly).
  • πŸ“‘ ##4636## β†’ Usage statistics β†’ Sensor status – displays sensor activity.
  • πŸ”‹ ##36446337## - information about the battery and temperature sensors.
  • 🧭 ##1472365## - Test GPS Magnetometer (not working on all models).

For example, to check the proximity sensor:

  1. Enter the code ##0*##.
  2. You'll see a color test on the screen, and you'll cover the top of the phone with your hand.
  3. If the screen is gone or changed color, the sensor works. If it's not, it needs to be replaced.
What to do if the service codes do not work?
On new Xiaomi models (such as Xiaomi 14 or Redmi Note 13), the manufacturer can block service codes. ADB-commands or applications from Google Play. Also check if the codes in the developer settings are disabled (item "Debugging by Google Play") USB" should be on).

Method 4: Checking the fingerprint sensor

The fingerprint scanner on Xiaomi can be optical (under screen) or ultrasonic (on flagships like the Xiaomi 13 Ultra).

  1. Remove all saved fingerprints to Settings β†’ Passwords and Security β†’ Fingerprints.
  2. Reboot the phone.
  3. Add the print again by following the instructions on the screen.
  4. If the scanner is not responding, check if there is any physical damage (scratches on the sensor or cracks on the screen).

For diagnosis through CIT:

  1. Open the engineering menu (see Method 1).
  2. Select the Fingerprint Test.
  3. Put your finger on the scanner, and if you pass the test, the sensor is in good condition.

⚠️ Note: On models with optical scanner (e.g. Redmi) K60) The sensor may stop working after the protective glass is replaced, and this is due to a change in the thickness of the coating above the sensor.

Delete all prints.|Reboot the phone|Check for damage|Testing in the Engineering Menu|Update firmware-->

Method 5: Checking the Hall sensor (for smart cases)

The Hall sensor is responsible for detecting the closure of the case. If your smartphone does not respond to the opening / closing of the Smart Cover cover, follow the following steps:

  1. Make sure the cover is original or supports Smart Cover.
  2. Enable the option in the settings: Settings β†’ Display β†’ Lock when closing the case.
  3. Check the sensor through the Hall Sensor Test.
  4. If the test fails, try reconnecting the case or resetting the phone settings.

On some models (such as the POCO X5 Pro), the Hall sensor may conflict with magnetic holders for the phone in the car. If after installing such a holder, the phone begins to behave strangely (independently locks, turns on the screen), calibrate the sensor through CIT or turn off the Smart Cover function.

What to do if the sensor is not working

If tests show that one or more sensors are faulty, try the following solutions:

  • πŸ”„ Phone reboot – sometimes sensors β€œhang” due to software failures.
  • πŸ“² Update of the firmware - in new versions MIUI Frequently correct sensor errors.
  • βš™οΈ Reset settings – return the phone to factory settings (don’t forget to make a backup!).
  • πŸ”§ Clean connectors – if the sensor is physical (such as approximations), check if the holes are clogged with dust.
  • πŸ› οΈ Replacement of sensor – if nothing helps, contact the service center.

On removable battery models (like the Redmi 9A), it sometimes helps to reconnect the sensor plume, but it is not recommended to do this yourself - the risk of damaging the board.

πŸ’‘

If the proximity or illumination sensor is not working, first check the protective film or glass - they can block the infrared port of the sensor.

FAQ: Frequent questions about Xiaomi sensors

Can you calibrate sensors on Xiaomi yourself?
Yes, to calibrate the accelerometer and the gyroscope, use the GPSTest app (Manage Sensors section). For the magnetometer, run eight with the phone in the air, it will reset compass errors. The proximity sensor will be calibrated automatically when you restart.
Why does Xiaomi GPS detect location with a large error?
The problem may be related to: Uncalibrated magnetometer (see question above), Disabled barometer (includes in location settings), outdated version of AGPS (update data via GPS Status & Toolbox app), and check if the metal case is blocking the signal.
How do I know which proximity sensor is installed in my Xiaomi?
Xiaomi smartphones use two types of proximity sensors: Infrared (IR) β€” There's a separate hole next to the speaker (like the Redmi Note 11). Capacity is hidden under the screen (like the Xiaomi 13). To determine the type, flash a flashlight on the top of the screen β€” if you see a small black hole, it's a small black hole. IR-sensor.
Can a faulty sensor drain the battery?
Yes, if a gyroscope or accelerometer is constantly active due to a failure, they can increase the charge consumption by 10-15%. Check the activity of the sensors through Settings β†’ Battery β†’ Battery Use (look for the SensorService process).
Where to find original parts to replace sensors?
To replace sensors, we recommend: Official Xiaomi service centers (repair warranty). Parts stores: AliExpress (sellers with a higher rating) 98%), Fixez, GSMMarta, groups in Telegram or VK repairs to Xiaomi (for example, @xiaomirepair). The cost of the proximity sensor - from 200 β‚½, gyroscope 500 β‚½, print scanner -- from 1500 β‚½.