Logo
Sonoff TH Elite 16A Temperature and Humidity Monitoring Switch Module (THR316D)
Sonoff TH Elite 16A Temperature and Humidity Monitoring

Available from:
Amazon.com
Aliexpress.com
Mediarath.de
Banggood.com


Manufacturer:
Itead.cc

Install method:
USB to Serial

GPIO #Component
GPIO00 Button 1
GPIO01 None
GPIO02 None
GPIO03 None
GPIO04 Relay 2
GPIO05 TM1621 DAT
GPIO09 None
GPIO10 None
GPIO12 None
GPIO13 Led_i 2
GPIO14 None
GPIO15 LedLinki
GPIO16 Led_i 1
GPIO17 TM1621 CS
GPIO18 TM1621 WR
GPIO19 None
GPIO20 None
GPIO21 Relay 1
GPIO22 None
GPIO23 TM1621 RD
GPIO24 None
GPIO25 User
GPIO26 None
GPIO27 Output Hi
GPIO6 None
GPIO7 None
GPIO8 None
GPIO11 None
GPIO32 None
GPIO33 None
GPIO34 None
GPIO35 None
GPIO36 None
GPIO37 None
GPIO38 None
GPIO39 None
Configuration for ESP32
{"NAME":"Sonoff THR316D","GPIO":[32,0,0,0,225,9280,0,0,0,321,0,576,320,9184,9216,0,0,224,0,9248,0,1,0,3840,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
Use code BLAKADDER when buying from itead.cc for a 10% discount.

Use the device button to enable flash mode.

Follow the GitHub issue thread for development updates

Sensor Options

There are two sensor options when buying this device currently, one is the THS01 and the other being DS18B20 (Waterproof).

To get the DS18B20 working when using the configure module, select the DS18x20 sensor for IO GPIO25, this will give you a temperature range from -55°C to +125°C.

To get the THS01 working when using the configure module, select the SI7021 sensor for IO GPIO25, this will give you a temperature range from -40°C to +85°C, humidity range of 0 to 100%RH.

If using the THS01 results in random “NULL” values. Try chaning the DhtDelay value to ‘DhtDelay 500,40’. If successfull create a rule so that it stays persistent. ‘Rule1 on system#init do DhtDelay 500,40 endon Rule1 1’

Sensor Wiring

Sensor are connected with a standard phone plug, search for 4P4C, RJ9, RJ10, or RJ22. You can use an adapter to connect old sensors with an audio jack.

4P4C RJ9/RJ10/RJ22

4P4C RJ9/RJ10/RJ22 ESP
1 (Yellow on image) 3V3 GPIO27 providing 3V3
2 (Green on image) GPIO25 data
3 (Red on image) NC
4 (Black on image) GND