Scroll down for more guides

Sensors 8 min read

Motion, door, temperature and water sensors in a house

Understanding Smart Home Sensors and How to Use Them

Sensors are an essential part of a modern Smart Home. They allow your home automation system to detect changes in its surroundings and respond automatically without requiring manual operation.

Within the Tuya Smart Home ecosystem, sensors can monitor movement, detect when doors and windows are opened, measure temperature and humidity, and identify unwanted water leakage.

By combining sensors with smart switches, lighting controllers, alarms and other compatible devices, you can create an intelligent environment that responds to everyday activities and unexpected events.

This guide explains how the four main types of Smart Home sensors work, where they should be installed and how to use them with Tuya Smart or Smart Life.

1. Motion Sensors

Motion sensors detect movement within a defined area. They are commonly used for automatic lighting, security monitoring and presence-related automation.

Most ordinary Tuya motion sensors use Passive Infrared (PIR) technology.

A PIR sensor detects changes in infrared radiation caused by moving warm objects, including people and animals, within its detection area.

Typical applications

  • Automatically switching on hallway lights.
  • Activating outdoor lighting when someone approaches.
  • Monitoring movement in garages and storage rooms.
  • Triggering security notifications.
  • Activating lighting in bathrooms and utility rooms.

How to use a motion sensor

A typical automation could work as follows:

IF movement is detected.
THEN switch on the hallway light.

You can add additional conditions to prevent the light from activating during daylight hours. For example:

IF movement is detected
AND ambient light is below a selected level.
THEN switch on the hallway light.

Installation recommendations

  • Install the sensor where it has a clear view of the area being monitored.
  • Avoid pointing it directly towards heating equipment or other sources of rapidly changing temperatures.
  • Check the manufacturer’s recommended mounting height and detection angle.
  • Avoid placing it behind furniture or other obstacles.
  • Test its detection range after installation.

Important: PIR sensors detect changes in infrared radiation, not human identity. They can sometimes detect pets or other moving warm objects, depending on their size, position and the sensor’s sensitivity.

2. Door and Window Sensors

Door and window sensors are commonly used for security monitoring and automatic notifications.

Most Tuya-compatible models use a magnetic contact system consisting of two separate parts:

  • A main sensor containing the electronics and battery.
  • A smaller magnetic component.

When the two components are close together, the sensor normally reports that the door or window is closed.

When the door or window opens and the magnetic components move apart, the sensor detects the change and reports an open condition.

Typical applications

  • Monitoring entrance doors.
  • Checking whether windows are open.
  • Receiving notifications when doors are opened.
  • Monitoring cupboards and storage areas.
  • Activating an alarm when an entrance is opened.
  • Turning on lights when a door opens.

Example automation

IF the front door opens.
THEN send a notification to your smartphone.

Another possibility is:

IF the garage door opens.
THEN switch on the garage lighting.

Installation recommendations

  • Mount the main sensor and magnet according to the manufacturer’s alignment instructions.
  • Keep the two components within the specified operating distance.
  • Make sure the door or window can move freely.
  • Install the sensor on a stable surface.
  • Test the opening and closing detection before completing the installation.

Door and window sensors are particularly useful because they can operate continuously using very little electrical power.

3. Temperature and Humidity Sensors

Temperature and humidity sensors allow your Smart Home system to monitor indoor environmental conditions.

Depending on the model, they can display readings on an LCD screen and transmit measurements to Tuya Smart or Smart Life.

Some models also provide historical readings and temperature or humidity alerts.

Typical applications

  • Monitoring bedroom temperatures.
  • Checking humidity in bathrooms.
  • Monitoring storage rooms.
  • Controlling fans automatically.
  • Activating heating or cooling equipment.
  • Monitoring temperature-sensitive storage areas.

Example automation: Automatic fan control

IF the room temperature rises above 28°C.
THEN switch on the fan.

A second automation can switch it off when the temperature falls below 26°C.

Using two different temperature thresholds helps prevent the fan from repeatedly switching on and off when the temperature is close to the selected limit.

Example automation: Humidity control

IF bathroom humidity rises above 75%.
THEN activate the ventilation fan.

The fan can be switched off when humidity falls below a lower threshold, provided the sensor and control equipment support the required automation.

Installation recommendations

  • Position the sensor away from direct sunlight.
  • Avoid placing it directly beside heaters or air-conditioning outlets.
  • Do not install it where water can splash onto the electronics unless the product is specifically rated for that environment.
  • Allow sufficient airflow around the sensor.
  • Check its measurement accuracy and refresh interval.

Temperature and humidity sensors can be particularly useful in tropical climates, where high humidity can contribute to condensation, mould and damage to stored materials.

4. Water Leakage Sensors

Water leakage sensors are designed to detect unwanted water and provide an early warning before a small leak develops into serious damage.

They are particularly useful in areas where water pipes, washing machines, water heaters or plumbing connections are located.

Many models use two or more conductive contacts positioned near the bottom of the sensor.

When water bridges the contacts, the device detects the presence of water and sends an alert to the Smart Home system.

Some models use a separate cable or probe that can cover a larger monitoring area.

Typical applications

  • Monitoring areas beneath kitchen sinks.
  • Detecting leaks near washing machines.
  • Monitoring water heaters.
  • Protecting storage rooms and utility areas.
  • Detecting water near plumbing connections.
  • Monitoring areas around water tanks and pumps.

Example automation

IF water is detected.
THEN send an immediate notification to your smartphone.

You can also configure additional actions:

  • Activate an audible alarm.
  • Switch on a warning light.
  • Trigger another compatible device.
  • Close a motorised water shut-off valve, if correctly installed and supported.

Installation recommendations

  • Place the sensor at the lowest practical point where water is likely to collect.
  • Position it close to the equipment or pipe connections being monitored.
  • Keep the detection contacts clear of dirt and debris.
  • Test the sensor according to the manufacturer’s instructions.
  • Check battery condition regularly.

Important: A water leakage sensor normally detects water and reports the event. It does not automatically stop the water supply. Automatic shut-off requires an additional compatible motorised valve and a properly configured control system.

5. Wi-Fi vs Zigbee Sensors

Tuya-compatible sensors are available in different communication technologies.

The two common options are Wi-Fi and Zigbee.

FeatureWi-Fi SensorsZigbee Sensors
Gateway requiredUsually noGenerally yes
Battery operationDepends on modelVery common
Power consumptionGenerally higherGenerally lower
CommunicationDirectly through Wi-FiThrough Zigbee gateway
Mesh networkingNo standard device meshSupported
Best suited forSelected powered devicesMany battery-powered sensors

For battery-operated sensors, Zigbee is often a particularly practical choice because of its low power consumption.

A single compatible Zigbee gateway can manage several different types of sensors, reducing the need for every device to connect individually to your Wi-Fi router.

However, always check the product specifications and gateway compatibility before purchasing.

6. Combining Sensors with Smart Home Automation

The real value of sensors comes from combining their information with other Smart Home devices.

Here are some practical examples.

Automatic hallway lighting

Required devices:

  • Motion sensor.
  • Smart light or switch.

Automation:
IF movement is detected.
THEN switch on the hallway light.

Automatic security notification

Required devices:

  • Door sensor.
  • Smartphone with Tuya Smart or Smart Life.

Automation:
IF the front door opens.
THEN send a notification.

Automatic temperature control

Required devices:

  • Temperature sensor.
  • Compatible smart plug or switch.
  • Fan or other suitable equipment.

Automation:
IF temperature rises above 28°C.
THEN activate the fan.

Water leakage protection

Required devices:

  • Water leakage sensor.
  • Smartphone.
  • Optional motorised water shut-off valve.

Automation:
IF water leakage is detected.
THEN send an alert and activate the configured shut-off system, if installed.

7. Battery Life and Sensor Maintenance

Many Smart Home sensors operate using small batteries and are designed to remain active for long periods.

However, battery life depends on several factors:

  • Battery type and quality.
  • Sensor design.
  • Wireless signal strength.
  • Frequency of detected events.
  • Communication and reporting intervals.
  • Operating temperature.

Motion sensors that detect frequent movement may consume more power than door sensors that are rarely activated.

To maintain reliable operation:

  • Check battery levels regularly.
  • Replace batteries when the application reports low power.
  • Keep sensors clean.
  • Test important sensors periodically.
  • Check that devices remain connected to the gateway.
  • Replace damaged or unreliable equipment.

For security and water protection, never assume that a sensor is working simply because it was successfully installed several months earlier. Periodic testing is important.

8. Choosing the Right Sensors for Your Home

The best sensor installation depends on the layout of your property and what you want to monitor.

A basic Smart Home installation might include:

LocationRecommended SensorPurpose
Entrance doorDoor sensorMonitor opening and closing
HallwayMotion sensorAutomatic lighting
Living roomTemperature sensorMonitor room temperature
BathroomHumidity sensorMonitor moisture levels
Kitchen sinkWater sensorDetect water leakage
Washing machineWater sensorDetect unexpected leaks
GarageDoor and motion sensorsMonitor access and movement

You do not need to install everything at once. Start with the areas that would benefit most from monitoring and gradually expand the system.

Final Thoughts

Smart Home sensors provide the information that allows your home automation system to respond intelligently to its surroundings.

Motion sensors detect movement, door and window sensors monitor access, temperature and humidity sensors measure environmental conditions, and water leakage sensors help identify potential plumbing problems.

When combined with Tuya Smart or Smart Life, these devices can form the foundation of a practical and expandable home automation system.

Start with a few carefully selected sensors, configure useful automation rules and expand your installation as your requirements grow.

MISOLIMA® – Technology Made Practical.

Practical knowledge for building, configuring and expanding your Tuya Smart Home.