Wireless temperature and humidity sensors with support Wi-Fi or Zigbee/Wi-Fi bridges Sensors are becoming an integral part of modern smart home systems. They allow you to remotely control the microclimate in your apartment, greenhouse, office, or warehouse, receiving notifications about critical changes directly to your smartphone. However, many users encounter difficulties even at the setup stage: the device isn't detected on the network, the app doesn't recognize the sensor, or data transfer is delayed.
In this article we will look at three key connection scenarios: directly via Wi-Fi (for example, models Sonoff TH16 or Shelly H&T), via a Zigbee gateway with Wi-Fi access (Xiaomi/Aqara), as well as integration with cloud platforms such as Home Assistant or Google HomeWe'll pay special attention to common errors, such as protocol incompatibility, weak network signal, or IP address conflicts, which can interfere with the stable operation of sensors.
1. Selecting a sensor: which models support direct Wi-Fi connection
Not all wireless temperature and humidity sensors can connect to the network. directly via Wi-Fi. Most budget models (for example, Xiaomi Mijia or Aqara Temperature Humidity Sensor) use the protocol Zigbee and require an additional hub. At the same time, there are devices with a built-in Wi-Fi module that operate autonomously:
- 🔹 Sonoff TH10/TH16 — sensors with Wi-Fi support and relay control capability (for automation of climate control equipment).
- 🔹 Shelly H&T — a compact, battery-powered sensor with cloud service support Shelly Cloud.
- 🔹 Gosund EP11 — a budget option with data output to the application Smart Life.
- 🔹 Netatmo Smart Weather Station — a premium solution with advanced analytics and integration with Apple HomeKit.
When choosing, pay attention to communication protocol (Wi-Fi 2.4 GHz or 5 GHz), power supply type (from mains, battery or USB) and platform compatibility smart home. For example, sensors Sonoff easily integrated with Home Assistant, A Netatmo requires mandatory registration in the company cloud.
⚠️ Attention: Sensors with support onlyZigbeeorBluetoothwon't be able to connect to Wi-Fi directly. They'll need a gateway (e.g., Xiaomi Gateway or Aqara Hub).
2. Preparing for connection: what needs to be done before installation
Before you begin setup, make sure your network meets the sensor's requirements. Most devices only operate within the sensor's range. 2.4 GHz and do not support 5 GHz. Also check:
- 📶 Wi-Fi signal strength at the place of installation of the sensor (must be no lower
-70 dBm). - 🔌 Availability of power supply: If the sensor is battery-powered, charge it; if it is mains-powered, prepare an outlet.
- 📱 Compatible application: download the official software (Smart Life, eWeLink, Mi Home and others).
- 🔒 No blocking: Disable any VPNs, firewalls, or parental controls that may be interfering with your connection.
If the sensor requires cloud registration (e.g. Netatmo or Shelly), create an account with the manufacturer's service in advance. For local management (without cloud access), you may need a static IP address or DHCP reservation in the router settings.
☑️ Checklist before connecting
3. Step-by-step instructions: connecting the sensor to Wi-Fi
Let's consider a universal algorithm using a sensor as an example Sonoff TH16 (they are configured similarly Shelly H&T And Gosund EP11). For models with Zigbee (for example, Xiaomi) the instructions will differ - see. Section 5.
Step 1: Activate pairing mode
Most sensors have a physical button to switch to setup mode. For Sonoff TH16:
- Connect the sensor to a power source (wall socket or USB).
- Press and hold the button on the case
5-7 seconds, until the indicator starts flashing quickly. - In the appendix eWeLink click
Add device → Wi-Fi device.
Step 2: Connecting to the Network
The app will prompt you to select your Wi-Fi network and enter the password. Make sure:
- 📵 The network operates in the range
2.4 GHz(If the router is dual-band, temporarily disable it5 GHz). - 🔐 The password was entered correctly (case sensitive!).
- 🌐 The sensor is within the router's range (no further than 10 meters if there are no obstacles).
Step 3: Completing the setup
After successful connection:
- The sensor will appear in the list of devices in the application.
- Give it a name (eg "Bedroom - Temperature").
- Set up notifications when thresholds are exceeded (e.g. humidity > 70%).
⚠️ Note: If the sensor does not connect, check whether your router is blocking its MAC address. Some models (e.g., TP-Link) restrict access for new devices by default.
What to do if the sensor does not see the network?
1. Restart the router and sensor. 2. Check if your network's SSID is hidden. 3. Try connecting to a different network (for example, using your phone in hotspot mode). 4. Update the sensor's firmware using the firmware.
4. Setting up notifications and automation
The main advantage of Wi-Fi sensors is the ability remote monitoring And automationFor example, you can set up:
- 📲 Push notifications in the application when the indicators go beyond the normal range.
- 🔄 Automatic scripts (for example, turning on a humidifier when humidity
< 40%). - 📊 Data export V Google Sheets or IFTTT for analysis.
In the appendix eWeLink (For Sonoff) go to Smart → Scenarios and create a rule:
IF the temperature is > 28°C,
Then turn on the air conditioner (via a smart socket).
To integrate with Home Assistant add a sensor via a component Sonoff or MQTT (if supported). Sample configuration for configuration.yaml:
sensor:- platform: mqtt
name: "Living Room Temperature"
state_topic: "tele/sonoff_th16/SENSOR"
value_template: "{{ value_json['AM2301'].Temperature }}"
unit_of_measurement: "°C"
5. Connecting Zigbee sensors via a Wi-Fi gateway
If your sensor (eg. Xiaomi Mijia or Aqara) works according to the protocol Zigbee, to connect to Wi-Fi you will need gateway (hub). Popular options:
| Gateway | Protocol | Compatible sensors | Cloud |
|---|---|---|---|
| Xiaomi Gateway 3 | Zigbee 3.0 | Xiaomi/Aqara | Mi Home |
| Aqara Hub M2 | Zigbee 3.0 | Aqara, Tuya | Aqara Home |
| Sonoff ZBBridge | Zigbee | Sonoff, Tuya | eWeLink |
| Home Assistant + CC2531 | Zigbee | Any | Local |
Connection algorithm via Xiaomi Gateway 3:
- Plug the gateway into a power outlet and wait until the blue indicator flashes.
- In the appendix Mi Home click
Add Device → Gateway. - Select a region
China mainland(important for correct operation!). - After connecting the gateway, click
Add a subdeviceand activate pairing on the sensor (press and hold the button for 3 seconds).
⚠️ Caution: When using Xiaomi Gateway data from sensors is transmitted to the cloud Mi HomeFor local management without a cloud, firmware will be required. Zigbee2MQTT.
6. Troubleshooting: Why the sensor isn't working
If the sensor is connected but does not transmit data or disconnects, check the following:
- 📡 Weak Wi-Fi signal: Use a repeater or move the router closer to the sensor.
- 🔌 Nutritional problems: For network sensors, check the power supply (it should provide at least
5V/1A). - 🔄 IP conflict: in the router settings, reserve the IP for the sensor by MAC address.
- 📱 Outdated firmware: Update the sensor and application software.
For diagnostics use:
- 🛠️ Router logs: Check if the sensor receives an IP address (section
DHCP Clients). - 📡 Wi-Fi analyzer (For example, WiFi Analyzer) to find a free channel with minimal interference.
- 🔧 Ping test: if the sensor has a local IP, check the connection with the command
ping 192.168.x.x.
7. Integration with smart home platforms
To use sensor data in your smart home system, connect it to one of the following platforms:
| Platform | Connection method | Example of devices |
|---|---|---|
| Home Assistant | MQTT, REST API, Sonoff integration | Sonoff, Shelly, Tuya |
| Google Home | Cloud sync via Smart Life or eWeLink | Gosund, Sonoff |
| Apple HomeKit | Through HomeBridge or native support (Netatmo) | Netatmo, Aqara (with firmware) |
| Yandex Alice | Cloud connection via Yandex Smart Home | Redmond, Rubetek |
For Home Assistant add the sensor to configuration.yaml:
# Example for Sonoff TH16 via MQTTmqtt:
broker: 192.168.1.100
username: your_login
password: your_password
sensor:
- platform: mqtt
Name: "Humidity in the Bathroom"
state_topic: "tele/sonoff_th16/SENSOR"
value_template: "{{ value_json['AM2301'].Humidity }}"
unit_of_measurement: "%"
8. Alternative methods of data transfer
If Wi-Fi connection is not possible (for example, at a dacha without internet), consider alternatives:
- 📡 LoRa sensors (For example, Dragino LHT65) - work at a distance of up to 10 km without a router.
- 🔵 Bluetooth sensors (For example, Xiaomi LYWSD03MMC) - transmit data to a smartphone when approaching.
- 📶 GSM sensors (For example, Elfin EW11) - send SMS or call when triggered.
For LoRa a gateway will be required (for example, TTN Gateway), and for Bluetooth — the smartphone must be constantly present within range. GSM sensors are independent of Wi-Fi but require a SIM card with an SMS/data plan.
How to choose between Wi-Fi and LoRa?
Wi-Fi is suitable for home use with a stable internet connection. LoRa is optimal for remote sites (greenhouses, warehouses) without network access, but requires additional equipment.
Frequently Asked Questions
Is it possible to connect a Xiaomi sensor without a gateway?
No, sensors Xiaomi Mijia And Aqara use the protocol Zigbee and require a gateway (for example, Xiaomi Gateway or Aqara Hub). Exception: models with support Bluetooth (For example, LYWSD03MMC), but they only work within the range of the smartphone.
How to reset the Sonoff TH16 sensor to factory settings?
Press and hold the button on the case 10-15 secondsuntil the indicator light starts flashing red rapidly. After this, the sensor is ready for reconfiguration.
Why does the sensor show incorrect temperature values?
The reasons may be as follows:
- 🌡️ The sensor is located near a heat source (radiator, stove).
- 🔋 Dead battery (for battery-powered models).
- 🛠️ Sensor damage (check the integrity of the housing).
To calibrate some models (eg. Shelly H&T) you can use offsets in the application settings.
How to export sensor data to Excel?
The methods depend on the platform:
- 📊 Smart Life/eWeLink: use the function
Data exportin the history section. - 📈 Home Assistant: set up integration with Google Sheets through
AppDaemonorNode-RED. - 🖥️ Netatmo: Export data via the web interface Netatmo API.
Can the sensor be used outdoors?
Most household sensors are not designed for outdoor use due to:
- 🌧️ Lack of moisture protection (IP rating lower)
IP65). - 🌡️ Limited operating temperature range (usually from
0°C to 50°C).
For outdoor use, choose specialized models, for example, Elfin EW11 (GSM) or Dragino LHT65 (LoRa) with protection IP67.