How to connect the temperature sensor Xiaomi to the smart home: a full guide with photos

Xiaomi’s temperature sensors have become an integral part of the smart home ecosystem because of their precision, compactness and affordable price, which allow real-time monitoring of indoor climate, automating heaters, air conditioners and even irrigation systems, but many users have difficulty connecting first: the sensor is not detected by the app, shows incorrect data or falls off after a few hours.

In this article, we will analyze all current sensor models (MiJia Bluetooth Temperature and Humidity Sensor 2, Aqara Temperature and Humidity Sensor and others), consider their compatibility with various hubs (Xiaomi Gateway 3, Aqara Hub and others). M2), We'll also give you step-by-step instructions for connecting through Mi Home, Apple HomeKit, and alternative platforms like Home Assistant, and we'll focus on common bugs and fixes, from resetting the device to manually binding it. MAC-address.

What Xiaomi Temperature Sensors Are in 2026

Xiaomi and its sub-brand Aqara offer several models of temperature and humidity sensors, featuring communication protocol, accuracy and compatibility. Here is the current list for 2026:

  • πŸ”΅ MiJia Bluetooth Temperature and Humidity Sensor 2 (LYWSD03MMC) β€” most popular Bluetooth 5.0 model running without a hub: Β±0.3Β°C (temperature), Β±3% (humidity).
  • 🟒 Aqara Temperature and Humidity Sensor (WSDCGQ11LM) β€” It runs on Zigbee 3.0, requires a hub (Aqara Hub or Xiaomi Gateway.
  • πŸ”΄ MiJia Temperature and Humidity Sensor (LYWSD02) β€” Outdated Bluetooth 4.2 model, rare but still used in some systems.
  • βšͺ Aqara FP2 Presence Sensor – a premium sensor with support Thread/Matter, It measures temperature, humidity, light and the presence of people.

For most users, the best choice is LYWSD03MMC β€” It doesn't require you to buy an additional hub and can be easily integrated into Mi Home or Home Assistant via plugins, but if you already have an Aqara ecosystem with a hub, you'd better choose the one that you want to use. WSDCGQ11LM for stable work on Zigbee.

πŸ“Š What is the Xiaomi Temperature Sensor You Are Using?
MiJia Bluetooth (LYWSD03MMC)
Aqara Zigbee (WSDCGQ11LM)
Another Xiaomi
I don't use it.
Planning to buy

Important! Bluetooth sensors (for example, LYWSD03MMC) They have a communication range limit of no more than 10 meters in line of sight from a smartphone or hub. If the device is further away, the data will be updated with a delay or disappear.

What you need to connect the sensor Xiaomi

Before you start setting up, make sure you have everything you need. The minimum set depends on the sensor model:

Sensor modelEquipment requiredSoftware
LYWSD03MMC (Bluetooth)Smartphone with Bluetooth 4.2+ The Hub (Xiaomi Gateway 3)Mi Home (Android/iOS) or Home Assistant
WSDCGQ11LM (Zigbee)Hub Aqara Hub M2/Xiaomi GatewayMi Home or Aqara Home
Aqara FP2 (Thread)Hub with Thread support (such as Apple HomePod Mini)Apple Home or Home Assistant

Also check:

  • πŸ”‹ Charging the sensor battery (usually) CR2032). If the device is new, the battery is already installed, but the protective film can block contact.
  • πŸ“± The Mi Home version is not lower 6.5.0 (for Android/iOS). Older versions do not support new devices.
  • 🌐 Stable Internet connection on a smartphone (to download the sensor firmware on the first connection).

⚠️ Note: If you are using a sensor LYWSD03MMC With the Xiaomi Gateway 3 hub, update the hub firmware to the latest version via Settings β†’ Software Update: Older versions have a bug with loss of communication with Bluetooth devices.

Connecting Xiaomi sensor via Mi Home (Step-by-step)

The most popular model is the MiJia Bluetooth Temperature and Humidity Sensor 2 (LYWSD03MMC). The instructions are relevant for Mi Home version 6.5.0 and higher.

Set the battery up. CR2032 sensor|Download the Mi Home app|Register or log in to your account|Turn on Bluetooth on your smartphone|Place the sensor next to the phone (no further than 1 m)

-->

Step 1. Activation of the sensor

Remove the sensor from the package and remove the protective film from the battery (if any). The back of the device should light up a blue indicator, which means that the sensor is ready to connect. If the indicator is not on, press and hold the reset button (usually located on the end) for 5 seconds until the LED blinks.

Step 2: Adding the device to Mi Home

  1. Open the Mi Home app and go to the Devices tab β†’ Add the device (+).
  2. Select the Sensors category, then search for the MiJia Temperature and Humidity Sensor.
  3. Click Add and confirm access to Bluetooth and geodata (necessary to search for the device).
  4. Wait for the app to find the sensor. If the search is delayed, click Device not found? and select Add manually.

Step 3: Linking to the room and setting up notifications

After successful connection:

  • πŸ“ Assign a sensor to a room (such as a bedroom or a nursery) to help automate scenarios in the future.
  • βš™οΈ Go to the Device Settings β†’ Notifications and settings when outside the set values (e.g. temperature above 25)Β°C or humidity below 40%).
  • πŸ”„ Turn on the option to Update data in the background (in the settings of the application) so that the sensor transmits data even when the Mi Home is folded.

⚠️ Attention: If the sensor LYWSD03MMC connected via the Xiaomi Gateway hub, but the data is updated less than once every 10 minutes, check the hub's energy saving settings. β†’ Work mode and select High Performance.

πŸ’‘

If the sensor doesn’t connect the first time, try restarting your smartphone and repeating the procedure. Also make sure that there are no other Bluetooth devices (earphones, fitness bracelets) within a radius of 5 meters that can cause interference.

Connect via Apple HomeKit (for Aqara sensors)

Aqara sensors (e.g, WSDCGQ11LM) Apple supports HomeKit, but it requires the Aqara Hub M2 Or Aqara Camera Hub. G3. Here's how to do the binding:

Step 1 Connecting the Hub to HomeKit

If the hub hasn’t been added to Apple Home yet:

  1. Open the app Home to the iPhone/iPad.
  2. Click Add Accessory and Scan QR-code from the hub (located on the bottom or in the instructions).
  3. Follow the instructions on the screen to complete the setup.

Step 2: Adding a sensor to the Aqara ecosystem

Use the Aqara Home app (not Mi Home!)

  1. Go to the Devices. β†’ Add the device.
  2. Select a Temperature and Humidity Sensor and follow the hints.
  3. Once the sensor is successfully connected, it will automatically appear in Apple Home (the app may need to restart).

Step 3: Set up automation

In Apple Home, you can create scenarios based on sensor data.

  • 🌑️ Turn on the heater if the temperature is below 20Β°C.
  • πŸ’§ Include humidifier if the humidity is below 45%.
  • πŸ”” Receive a notification if the temperature in the nursery exceeded 24Β°C.

To do this, go to Automation. β†’ Create automation β†’ Temperature sensor and select the desired conditions.

What if the Aqara sensor doesn’t appear in HomeKit?
1. Make sure the Aqara Hub is updated to the latest firmware (check the Updates section at Aqara Home). 2. Reconnect the sensor to the hub via Aqara Home, then reboot the hub (turn off power for 10 seconds). 3. In Apple Home, remove the hub and add it again - this often solves the problem with syncing devices.

Connecting to Home Assistant (for advanced users)

If you use Home Assistant, Xiaomi sensors can be integrated through official plugins or custom components.

Method 1: Mi Home Integration (official)

This method is suitable for sensors connected through the Xiaomi Gateway hub:

  1. In Home Assistant, go to Settings β†’ Devices and Services β†’ Add Integration.
  2. Find Xiaomi Miio and enter the details from your Mi Home account (login and password).
  3. Select the server region (e.g. Russia or China – depending on your account).
  4. After authorization, all Xiaomi devices, including sensors, will appear in the system.

Method 2: via Bluetooth (for the LYWSD03MMC)

For sensors without a hub, you will need a Bluetooth proxy (for example, a Raspberry Pi with a Bluetooth adapter):

  1. Install Bluetooth Proxy component through HACS (Home Assistant Community Store).
  2. Add the following code to configuration.yaml: bluetooth_proxy: active: true device: hci0 discoverable: true
  3. Reboot Home Assistant and add Bluetooth integration LE.
  4. In the list of detected devices, find the sensor by MAC-Address (specified on the sticker) and add it.

Once added, the sensor will display temperature and humidity in real time. Use Automations' visual editor to create automation.

πŸ’‘

If the sensor LYWSD03MMC Connected via Bluetooth proxy, the data will be updated every time 5–10 For more frequent surveys (for example, once per minute) will require custom firmware, for example, ATC_MiThermometer.

Typical errors and their solution

Even with the right connection, Xiaomi sensors sometimes don’t work well. Let’s look at the most common problems and how to fix them.

Problem.Possible causeDecision
Sensor not found when connectedWeak Bluetooth signal or interferenceBring the sensor to the smartphone at a distance of 30-50 cm, turn off other Bluetooth devices
Data is updated less than once every 10 minutesPower saving mode hub or smartphoneTurn off battery optimization for Mi Home (in Android settings)
Temperature readings overstated/understatedEffects of direct sunlight or close-up heating devicesMove the sensor to the shade, at least 1 m from the radiators
The sensor shuts down in a few hours.Weak battery or firmware failureReplace the battery. CR2032 New (for example, Duracell or Energizer)

Additional advice:

  • πŸ”„ If the sensor LYWSD03MMC stopped transmitting data, try resetting it by holding the reset button for 10 seconds until the indicator blinks.
  • πŸ“‘ For stable operation of Zigbee sensors (Aqara), avoid placing a hub near sources of interference: microwaves, Wi-Fi routers at 2.4 GHz, wireless phones.
  • πŸ“± On iPhone, check that the Mi Home app allows Bluetooth and Location access (in iOS settings).

⚠️ Note: If you are using an Aqara sensor WSDCGQ11LM With the Xiaomi Gateway 3 hub, update the sensor firmware via Mi Home. In older versions of the firmware, the sensor can conflict with the hub and periodically shut down.

How to extend the life of the sensor

The average life of Xiaomi sensors is 2-3 years, but if used correctly, it can be increased.

  • πŸ”‹ Use high-quality batteries CR2032 (So, for example, Panasonic or Maxell, cheap ones are very quick to discharge and can leak.
  • 🌑️ Avoid placing the sensor in places with extreme temperature changes (for example, near the air conditioner or heater.
  • 🚿 Do not install the sensor in high humidity areas (bathroom, pool) if it does not have protection. IP67. This is the case with Aqara Water Leak Sensor.
  • πŸ“Ά Regularly (every 1-2 months) reboot the sensor, removing the battery for 10 seconds.

If the sensor starts showing clearly incorrect data (for example, temperature -50)Β°C or 99 percent humidity in a dry room, this is a sign of sensor malfunction, in which case you just have to replace the device - the sensors Xiaomi can not be repaired.

πŸ’‘

For maximum accuracy, place the sensor at a height of 1.2-1.5 m from the floor and at a distance of at least 0.5 m from the walls.

FAQ: Frequent questions about Xiaomi sensors

Can you connect Xiaomi sensor to Google Home or Alexa?
Yes, but with limitations: πŸ”Ή Aqara sensors (e.g, WSDCGQ11LM) You can connect to Google Home via Mi Home or Aqara Home and then sync through Google Assistant. πŸ”Ή Alexa will require Mi Home Skill (available from Amazon Skills Store). πŸ”Ή Sensors. LYWSD03MMC (Bluetooth is not directly supported, but you need an intermediate platform like Home Assistant.
How to reset the Xiaomi sensor to factory settings?
The method of reset depends on the model: πŸ”„ LYWSD03MMC: Hold the button on the end for 5-10 seconds until the indicator flashes three times. πŸ”„ WSDCGQ11LM: Press and hold the button on the back for 15 seconds (a paperclip will be required). πŸ”„ After reset, the sensor will be ready to reconnect.
Why does the sensor show the temperature at 2-3Β°C above the real?
This is a typical problem associated with: πŸ”₯ Self-heating – if the sensor is under direct sunlight or near a heat source. πŸ“‰ Incorrect calibration - some batches of sensors LYWSD03MMC They have factory shifts. They're solved by firmware. ATC_MiThermometer. 🌬️ Poor ventilation – place the sensor in a ventilated place, away from furniture and curtains. To check the accuracy, use a mercury or electronic thermometer as a reference.
Can I use the Xiaomi sensor on the street?
Most Xiaomi sensors are not designed for street use: ❄️ Operating temperature range: from -10Β°C +50Β°C (for) LYWSD03MMC). 🌧️ No protection from moisture (IP-No rating is given, so rain or snow will knock the device out. β˜€οΈ Direct sunlight distorts readings and shortens battery life. For the street, you should choose specialized sensors, such as the Aqara Outdoor Temperature Sensor (if available) or solutions from other brands (Netatmo, Elgato Eve).
How to export sensor data to Excel or Google Sheets?
There are a number of ways: πŸ“Š Through Mi Home: Go to the Device β†’ Data history β†’ Exports (not available for all regions). πŸ“ˆ Using Home Assistant: Use Google Sheets or InfluxDB integration to log data. πŸ€– Through IFTTT: Create an applet that will record the sensor readings in Google Sheets every time you update. To automate, we recommend using Home Assistant with the Google Sheets Exporter plugin.