UB-STH-N1 Wi-Fi Temperature Sensor
“
Product Specifications
- Model: UB-STH-N1
- Power Supply: DC 5~24V
- Max Current: Audio/Micro USB
- Measuring Range: 3m
- Accuracy: RS485 Modbus RTU Protocol
- Dimension: Probe Length
- Probe Length: 1200 bit/s,2400 bit/s, 4800
bit/s, 9600 bit/s (default), 19200 bit/s - Probe Diameter: RS485 Address
- Protection level: IP68
- Connector: VCC Red Red, B White Green, A Green
White, GND Black Black - Cable Length: 5cm diameter cylinder of equal
height to the probes - Communication Protocol: RS485 Modbus RTU
Protocol
Product Usage Instructions
Measurement Area
Inside a 5cm diameter cylinder of equal height to the probes,
centred on the centre of the two probes.
Quick Test Method
Select a suitable measurement site, avoid rocks and ensure that
the steel needle does not touch hard objects. Throw away the top
layer of soil according to the required measuring depth, keep the
original tightness of the soil underneath, and insert the sensor
vertically into the soil by holding it tightly. Do not shake the
sensor from side to side when inserting it. It is recommended to
take several measurements within a small area of one measurement
point to find the average value.
Ground Penetration Method
Vertically dig a pit with a diameter of >20cm. Insert the
sensor pin horizontally into the pit wall at the established depth
and fill the pit tightly. After a period of stabilisation,
measurements and recordings can be made over a period of days,
months or even longer.
Communication Protocols
1. Communication basic parameters
- Coding System: Data Bit
- Parity Checking Bit: Stop Bit
- Error Checking Baud Rate: 1200 bit/s, 2400 bit/s, 4800 bit/s,
9600 bit/s (default), 19200 bit/s
2. Data Frame Format
The Modbus-RTU communication protocol is used in the following
format:
- Initial structure: 4 bytes in time.
- Address code: 1 byte, default 0xFE.
- Function code: 1 byte, support function code 0x03 (read only)
and 0x06 (read/write). - Data area: N bytes, 16-bit data, high byte comes first.
- Error check: 16-bit CRC code.
- End structure: 4 bytes of time.
Frequently Asked Questions (FAQ)
Q: What is the measuring range of the sensor?
A: The measuring range is 3m.
Q: What is the communication protocol used by the sensor?
A: The sensor uses RS485 Modbus RTU Protocol for
communication.
“`
Product Introduction
The sensor uses the frequency domain reflection method to measure soil water content. By measuring the dielectric constant of the soil, and according to the transmission line theory, the effect of the change of capacitance on the change of reflected wave is measured, and then the soil water content is measured. The sensor housing is made of ABS with good resistance to acid and alkali corrosion and can reach IP68 waterproof rating.
Use Case Scenarios It is widely used in homes, offices, flowers, farms and other places where soil temperature and humidity need to be measured.
Features 1. Imported sensors, high precision and fast response. 2. Stronger stability and anti-interference ability. 3. Wide voltage input, DC 5~24V.
Product Specifications
Model Power Supply Max Current Measuring Range
Accuracy Dimension Probe Length Probe Diameter Protection level Connector Cable Length Communication Protocol RS485 Address Baud Rate
Specifications UB-STH-N1 DC 5~24V
75mA@5V155mA@12V Temperature: -40~85 Humidity: 0~100% Temperature: ±0.5
Humidity: ±3% (@0~50%) ; ±5% (@50~100%) 150*45*15mm 80mm 3.5 IP68
Audio/Micro USB 3m
RS485 Modbus RTU Protocol 0xFE
1200 bit/s,2400 bit/s, 4800 bit/s, 9600 bit/s (default), 19200 bit/s
Wiring Instruction
RS485 Micro USB
Audio
VCC Red Red
B White Green
A Green White
GND Black Black
Micro USB
Audio
Measurement Area
Measurement area: Inside a 5cm diameter cylinder of equal height to the probes, centred on the centre of the two probes.
Quick Test Method
Select a suitable measurement site, avoid rocks and ensure that the steel needle does not touch hard objects. Throw away the top layer of soil according to the required measuring depth, keep the original tightness of the soil underneath, and insert the sensor vertically into the soil by holding it tightly. Do not shake the sensor from side to side when inserting it. It is recommended to take several measurements within a small area of one measurement point to find the average value.
Ground Penetration Method
Vertically dig a pit with a diameter of >20cm. Insert the sensor pin horizontally into the pit wall at the established depth and fill the pit tightly. After a period of stabilisation, measurements and recordings can be made over a period of days, months or even longer.
Communication protocols
1. Communication basic parameters
Coding System Data Bit
Parity Checking Bit Stop Bit
Error Checking Baud Rate
Communication Basic Parameter 8bit binary 8 bits none 1 bit CRC Check
1200 bit/s, 2400 bit/s, 4800 bit/s, 9600 bit/s (default), 19200 bit/s
2. Data Frame Format
The Modbus-RTU communication protocol is used in the following format:
Initial structure 4 bytes in time.
Address code: 1 byte, default 0xFE.
Function code: 1 byte, support function code 0x03 (read only) and 0x06 (read/write).
Data area: N bytes, 16-bit data, high byte comes first.
Error check: 16-bit CRC code.
End structure 4 bytes of time.
Request
Slave Address
Function Code Register Address No. of Registers
CRC LSB
CRC MSB
1 byte
1 byte
2 bytes
2 bytes
1 byte
1 byte
Response
Slave Address Function Code No. of Bytes Content 1 Content 1
…
Content n
CRC
1 byte
1 byte
1 byte
2 bytes
2 bytes
…
2 bytes
2 bytes
3. Register Address
Address 0x0000 0x0001 0x0064
0x0065
Content Humidity Temperature Address
Baud Rate
Register Address
Register Length Function Code
1
03
1
03
1
03/06
1
03/06
Description of definitions Unsigned integer data, divided by 10
Signed integer data, divided by 10 1255
1:4800, 2:9600, 3:14400, 4:19200, 5:38400, 6:115200
NOTE 1. The steel needle must be fully inserted into the soil during measurement. 2. Avoid strong sunlight shining directly on the sensor and causing high temperature.Pay attention to
the lightning protection when using in the field. 3. Do not violently bend the steel needle, do not pull the sensor lead wire, do not drop or hit the
sensor violently. 4. Due to the presence of radio frequency electromagnetic radiation in the air, should not be in the
air for a long time in the power state.
Documents / Resources
![]() |
UBIBOT UB-STH-N1 Wi-Fi Temperature Sensor [pdf] User Guide UB-STH-N1 Wi-Fi Temperature Sensor, UB-STH-N1, Wi-Fi Temperature Sensor, Temperature Sensor, Sensor |