Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors

WS202 PIR & Light LoRaWAN® Sensor

  • Device
  • 419 installs
  • v1.0.1
  • Jun 15, 2026
  • MIT license
  • v4.2+

The Milesight WS202 is a compact battery-powered LoRaWAN Class A PIR and light sensor detecting motion and occupancy up to 8 m with a 120°×100° field of view. The built-in light sensor measures 1–60,000 lux for combined occupancy and brightness-triggered automation. With NFC configuration, Milesight D2D device-to-device control, 15 km rural range, and easy installation, it suits smart offices, homes, schools, and warehouses.

Hardware Type
  • Sensor
Connectivity
  • LoRaWAN
Use Cases
  • Smart Office
  • Health Care

Overview

The Milesight WS202 is a LoRaWAN PIR and light sensor. It detects motion or occupancy with a passive infrared sensor at up to 8 m, and its light sensor tells bright from dark by a threshold the user sets, so that the two together can trigger scenes. It is compact, runs on a battery and is configured over NFC. This page lists the sensor specification and how it connects to ThingsBoard through ChirpStack, The Things Stack (TTN or TTI) or LORIOT.

Key features

  • Occupancy or motion detection with a passive infrared sensor and a Fresnel lens
  • Built-in light sensor, combined with the PIR result to trigger scenes
  • Configuration over NFC from a phone
  • Milesight D2D protocol for low-latency direct control without a gateway
  • Threshold alarm
  • Wireless transmission up to 15 km in line of sight
  • Works with standard LoRaWAN gateways and network servers

Device profile

Classification fields, using the same connectivity vocabulary the Hub itself uses for the badges on this page. Connectivity is the roll-up of the three rows below it.

Field Value
Hardware Type Sensor
Connectivity LoRaWAN, NFC
Physical Interface None
Wireless Technology LoRaWAN, NFC
Industrial Protocol None
Application Protocol None

Technical specifications

Parameter Value
PIR detection area 120° horizontal, 100° vertical
PIR detection distance Up to 8 m
Light 1 to 60000 lux, reported as bright or dark by a custom threshold
LoRaWAN Class A, OTAA or ABP; Milesight D2D controller
LoRaWAN frequency plans CN470, IN865, RU864, EU868, US915, AU915, KR920, AS923
Transmit power 16 dBm (868 MHz), 22 dBm (915 MHz), 19 dBm (470 MHz)
Receiver sensitivity -137 dBm at 300 bps
Antenna Internal
Indicator 1 status LED
Button 1 internal reset button
Configuration Mobile app over NFC
Advanced features Milesight D2D controller, threshold alarm
Power supply 1x 1650 mAh ER14335 Li-SOCl2 battery
Battery life About 4.2 years at SF7 and 2.4 years at SF10 on EU868; 3.9 and 2 years on US915 (report every 30 minutes, 30 triggers a day, 25 °C; laboratory figures)
Operating temperature -20 °C to +60 °C
Relative humidity 0% to 90%, non-condensing
Ingress protection IP30
Housing Anti-flaming polycarbonate, white
Dimensions 50 x 50 x 23.8 mm; lens 17.2 mm in diameter
Weight 40 g with battery
Mounting Flat surfaces with screws or 3M tape
Certifications CE, FCC, RoHS, LoRaWAN Certified; safety EN 62368-1

Supported use cases

  • Occupancy and motion detection in smart offices and smart homes
  • Light control and scene triggers from motion and brightness
  • Schools and warehouses

Device technical documentation

Download datasheets and manuals for the WS202 PIR & Light LoRaWAN® Sensor

WS202 PIR & Light LoRaWAN® Sensor Product page WS202 PIR & Light LoRaWAN® Sensor Datasheet

Add Your Device to the Community

Built or ship IoT hardware? Package your device as a ZIP and publish it to the IoT Hub so users can provision it in one click.