How to connect the temperature and humidity sensor Xiaomi Mi Temperature & Humidity Sensor 2: full instruction

Xiaomi Mi Temperature and Humidity Sensor 2 (model) LYWSD03MMC) β€” One of the most popular smart home devices from the Xiaomi brand, it allows real-time monitoring of indoor climate by sending data to a smartphone or automation system, but many users have difficulty connecting first: The device is not detected, the data is not updated, or the Mi Home app is an error.

In this article, you will find detailed instructions on how to connect the sensor to your Android or iOS smartphone, as well as to your home home home (Home Assistant, Apple HomeKit by workarounds), and we will break down the typical errors, fix them, and give you recommendations on how to optimally place the sensor for accurate readings, if you are just starting to build the Xiaomi ecosystem or want to integrate an old sensor into a new system, this is the guide for you.

Technical characteristics of the sensor Xiaomi Mi 2

Before connecting, it’s important to know which device you’re working with. Xiaomi Mi Temperature & Humidity Sensor 2 (model number LYWSD03MMC) is the second version of the popular sensor released in 2019. It differs from the first version (LYWSDCGQ) with improved accuracy and support for Bluetooth Mesh protocol (instead of Zigbee).

The main parameters of the device:

  • πŸ“ Dimensions: 36 Γ— 36 Γ— 11 mm, weight β€” 13 s.
  • πŸ”‹ Power: battery CR2032 (service life up to 2 years in standard use).
  • 🌑️ Measurement range: temperature from -20Β°C +60Β°C (mistake) Β±0.3Β°C), humidity from 0% before 99% (margin of error Β±3%).
  • πŸ“Ά Communication Protocol: Bluetooth Low Energy 5.0 (BLE) Mesh-enabled.
  • πŸ“± Compatibility: Mi Home, Xiaomi Home, and third-party systems via Home Assistant or OpenHab.

Note that the sensor does not have its own display – all data is displayed only in the application, and it does not support Zigbee, so it will not connect to hubs like Xiaomi Mi Gateway or Aqara Hub without additional manipulation.

πŸ“Š What kind of smart home ecosystem do you use?
Xiaomi Mi Home
Apple HomeKit
Google Home
Home Assistant
Another.

Preparation for connection: what will be needed

To successfully connect the sensor, prepare in advance:

  • πŸ“± Smartphone on Android 6.0+ or iOS 12.0+ with Mi Home installed (you can download it from Google Play or App Store).
  • πŸ”‹ Battery CR2032 (If the sensor is new, it is already installed, but check the protective film).
  • πŸ“‘ Stable Internet connection on a smartphone (for authorization in Mi Home).
  • πŸ“ Place of installation of the sensor (recommended distance to the smartphone – no more than 10 meters without obstacles).

An important caveat: if you use an iPhone, make sure that the Privacy settings β†’ Geolocation Services for the Mi Home app allow you to access the location. Without that, the sensor will not be able to connect over Bluetooth.

⚠️ Warning: If the sensor has already been connected to another Mi Home account, it must first be reset. Remove the battery for 10 seconds, then insert back and hold the button on the sensor for 5 seconds (until the indicator flashes).

Install/update the Mi Home app

Insert the battery into the sensor (remove the protective film)

Turn on Bluetooth on your smartphone

Allow geolocation for Mi Home (for iOS)

Make sure the sensor is not tied to another account-->

Step-by-step: Connection via Mi Home

Follow this algorithm to connect the sensor to the Mi Home app:

  1. Open the Mi Home app and log in (if you haven't already done so) and select Mainland China (yes, even if you're in Russia, it's important for the sensor to work properly).
  2. Click on the + icon in the upper right corner, then select Add Device.
  3. In the search box, type Temperature and Humidity Sensor 2 or scan. QR-sensor-box.
  4. Follow the instructions on the screen: the app will ask you to insert the battery (if you haven’t already inserted) and hold the button on the sensor until the blue indicator flashes (about 5 seconds).
  5. Wait until the device is found, and if the sensor is not found, try bringing it closer to the smartphone (at a distance of 1-2 meters).
  6. After successfully connecting the Assign sensor to the room (such as the Bedroom or the Children's Room) and setting up temperature/humidity critical notifications.

Tip: If the sensor isn’t detected, try restarting Bluetooth on your smartphone or switching the region to Mi Home to Russia (sometimes this helps with connectivity).

Problem.Possible causeDecision
No sensor found.Weak Bluetooth signalBring the sensor closer to the smartphone, remove obstacles
"Device occupied" errorSensor is tied to another accountReset the sensor (remove the battery for 10 seconds)
Data not updatedNo Internet or problems with Xiaomi serversCheck the connection, restart the application
Incorrect testimonyThe sensor is located near the heat/cold source.Move the sensor to a neutral location (e.g., a wall)

πŸ’‘

If the sensor is connected, but the data is updated rarely (every 10-15 minutes), try adding it through the Aqara Home app - there the refresh interval can be more frequent (every 1-2 minutes).

Integration with Home Assistant and other systems

If you use Home Assistant or similar platforms, the Xiaomi Mi 2 sensor can be connected via Bluetooth protocol.

  1. Make sure your Home Assistant server is equipped with a Bluetooth adapter (such as USB Bluetooth 5.0).
  2. Add the following code to the configuration.yaml file: sensor: - platform: mitemp_bt devices: - mac: 'XX:XX:XX:XX:XX:XX' # Replace it with MAC-The address of your sensor name: "Temperature sensor Xiaomi" force_update: true period: 60 retry: 3
  3. Restart Home Assistant. The sensor will appear in the list of devices.

There is no direct connection for Apple HomeKit, but you can use the workaround via Home Assistant + HomeKit Bridge plugin or the Aqara Hub purchase hub (if you flash the sensor with alternative firmware).

⚠️ Note: When integrated through Home Assistant, data may be updated less frequently than in the native Mi Home app. BLE. For frequent survey (once every 1-2 minutes) additional scripting will be required.

How do you know? MAC-sensor?
To find MAC-Address, connect the sensor to Mi Home, then use the nRF Connect app (Android/iOS) or a command in a Linux terminal: hcitool lescan The sensor will be displayed as LYWSD03MMC uniquely.

Optimal placement of the sensor for accurate readings

The correct location of the sensor is critical for correct measurements.

  • 🌿 Height: Place at a height of 1.2-1.5 meters from the floor (human breathing level).
  • 🚫 Avoid: direct sunlight, heating radiators, air conditioners, kitchen stoves.
  • 🧱 Wall material: If the sensor is attached to the wall, choose internal partitions (external walls may distort readings).
  • πŸ“Ά Distance to the hub: if you use Xiaomi Gateway (through workarounds), keep the sensor within a radius of 5-7 meters without thick barriers.

A critical mistake many users make is putting the sensor in closed cabinets or behind furniture, which leads to condensation accumulation and false humidity readings (up to 99% at the real 60%).

Use double-sided tape (comes with it) or small nails to attach, and if the sensor is on the shelf, make sure it is not covered by books or other objects.

Frequent mistakes and their solutions

Even after a successful connection, users face problems, and here are the most common ways to fix them:

  • πŸ”„ "Data not updated": Check if the battery is running out (symptom: the indicator does not flash when you press a button); restart Bluetooth on your smartphone; remove the sensor from the application and reconnect.
  • ❄️ "Temperature readings overstated/understated": Move the sensor away from windows, batteries, appliances. Check calibration: compare readings to another thermometer.
  • πŸ“΅ "Sensor disconnected from Mi Home": Update the Mi Home app to the latest version. Reset the sensor (remove the battery for 10 seconds). Check if the region has changed in your account settings (should be Mainland China).

If the sensor has stopped responding to the push of a button, it may indicate damage to the battery contacts. Carefully remove and insert the battery back, making sure that the spring contacts are not bent.

πŸ’‘

Most of the problems with the Xiaomi Mi 2 sensor are due to the wrong region in the Mi Home or a weak Bluetooth signal.Always start the diagnosis by checking these two parameters.

Alternative ways to connect (without Mi Home)

If you don’t want to use Mi Home or are faced with restrictions (like the sensor isn’t supported in your area), there are workarounds:

  1. Aqara Home: Although it's a Xiaomi sensor, it can be added to Aqara Home via Other Device Mode, which gives you more frequent updates.

For most users, Aqara Home is enough, and Zigbee only makes firmware worth it if you're building an ecosystem based on Aqara and want to unify protocols.

FAQ: Answers to Frequent Questions

Can I use a sensor outside?
Xiaomi Mi Temperature & Humidity Sensor 2 has no protection against moisture and dust (IP-If installed outside or in a damp room (for example, a bathroom), the sensor will quickly fail. For the street, specialized models like Xiaomi Mi Flora will suit (but they only measure temperature).
How often do you update your data in Mi Home?
In standard mode, the sensor sends data every 10-15 minutes. If you need more often, use Aqara Home (update every 1-2 minutes) or configure a survey through Home Assistant.
Why does the sensor show 99 percent humidity?
This is a common mistake when placing the sensor in a closed space (cloaker, box) or near a source of steam (for example, in the bathroom while showering), move it to a ventilated place and wait for the stabilization readings (may take up to 1 hour).
Can I connect the sensor to Google Home?
There is no direct integration, but you can use a workaround: connect the sensor to the Home Assistant, and then link the Home Assistant to Google Home via the Google Assistant plugin.
How many sensors can you connect to a smartphone?
There are no restrictions on the Mi Home – you can add up to 100 devices per account. BLE-Devices may cause delays in updating data.