Component guide · Intermediate · 3 min read
WIN-SN Ethernet (Modbus TCP, MQTT, ASCII) and Analog Output (0-10 V

4-20 mA) Temperature Humidity Sensors
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The WIN-SN-TNH-E sensors plug into an Ethernet network and report temperature and humidity directly, with versions that speak Modbus TCP, MQTT or plain ASCII text. They suit server rooms and warehouses already wired with LAN. The AHT20-based AO-V and AO-C versions instead give a 0 to 10 V or 4 to 20 mA output for PLCs, and the IAQ-W version adds indoor air quality.
Key specs at a glance
- Network
- 10/100 Ethernet (E versions)
- Protocols
- Modbus TCP, MQTT or ASCII by model
- Analog
- 0 to 10 V (AO-V) or 4 to 20 mA (AO-C)
- Sensor
- AHT20 class, about plus or minus 0.3 degrees C and 2% RH
- Supply
- 12 to 24 V DC on most versions (check the label)
- Setup
- IP address via web page or config tool
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Winsen WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – Modbus TCP/RTU, MQTT, I2C Interface₹7,211
Option 2Winsen WIN-SN-TNH-E Ethernet Temperature Humidity Sensor – ASCII over Ethernet, USB-C/12V DC₹7,211
Option 3Agametic WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – MQTT over Ethernet, TCP/IP, Modbus RTU, 5V/12V DC₹7,211
Option 4Wittelb WIN-SN-TnH+IAQ-W Digital Temperature & Humidity Sensor with Internal Air Quality (IAQ) – Modbus/MQTT over Wi-Fi₹6,424
Option 5Wittelb WIN-SN-TnH-AHT20-AO-C Digital Temperature & Humidity Sensor – Analog Output (4-20mA)₹5,637
Option 6Wittelb WIN-SN-TnH-AHT20-AO-V Digital Temperature and Humidity Sensor with Analog Output Voltage Signal₹5,637
What the WIN-SN Ethernet and analog-output temperature humidity sensors is
Ethernet temperature and humidity sensors, such as WIN-SN network sensors, report readings over the LAN with a web page, SNMP, Modbus TCP or MQTT for server rooms and warehouses.
Set a fixed IP address first, using the maker's tool or web page. Then point your SCADA, Node-RED or Home Assistant at it.
For the analog versions, map 0 to 10 V (or 4 to 20 mA) onto the scale printed in the manual, often -40 to 80 degrees C and 0 to 100% RH.
WIN-SN Ethernet and analog-output temperature humidity sensors pinout
The pins on the WIN-SN Ethernet and analog-output temperature humidity sensors and what each one does.
| Pin | Function |
|---|---|
| RJ45 | Ethernet |
| V+ / GND | DC supply |
| T-OUT / H-OUT | Analog outputs (AO versions) |
- RJ45
- Ethernet
- V+ / GND
- DC supply
- T-OUT / H-OUT
- Analog outputs (AO versions)
Wiring the WIN-SN Ethernet and analog-output temperature humidity sensors
A 250 ohm shunt turns 4 to 20 mA into 1 to 5 V; scale it down further for a 3.3 V ADC.
| WIN-SN Ethernet and analog-output temperature humidity sensors pin | PLC or network | ESP32 (analog versions) |
|---|---|---|
| Ethernet | Router or switch | Router or switch |
| V+ | 12 to 24 V supply | 12 to 24 V supply |
| AO-V output | PLC 0-10 V input | ESP32 via 10 k / 3.3 k divider |
| AO-C output | PLC 4-20 mA input | 250 ohm shunt to ADC |
- Ethernet
- PLC or network:
- Router or switch
- ESP32 (analog versions):
- Router or switch
- V+
- PLC or network:
- 12 to 24 V supply
- ESP32 (analog versions):
- 12 to 24 V supply
- AO-V output
- PLC or network:
- PLC 0-10 V input
- ESP32 (analog versions):
- ESP32 via 10 k / 3.3 k divider
- AO-C output
- PLC or network:
- PLC 4-20 mA input
- ESP32 (analog versions):
- 250 ohm shunt to ADC
Example code
A minimal sketch to check the part works.
from pymodbus.client import ModbusTcpClient
c = ModbusTcpClient("192.168.1.50", port=502) # the sensor's IP
c.connect()
r = c.read_holding_registers(0, count=2, slave=1) # check your manual's register map
if not r.isError():
t, h = r.registers[0] / 10, r.registers[1] / 10
print(f"{t:.1f} C {h:.1f} %RH")
c.close()Setup and tuning
connect to a switch and set a static IP in the web page.
use PoE or the DC adapter.
enable SNMP, Modbus TCP or MQTT for your monitoring system.
set high and low thresholds for email or relay alerts.
measure at rack inlet height in server rooms.
What you need
Shop this list10 of 10 found in our store · ₹40,223
Winsen WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – Modbus TCP/RTU, MQTT, I2C Interface: the part this guide coversWinsen WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – Modbus TCP/RTU, MQTT, I2C Interface₹7,211
Winsen WIN-SN-TNH-E Ethernet Temperature Humidity Sensor – ASCII over Ethernet, USB-C/12V DC: another version this guide coversWinsen WIN-SN-TNH-E Ethernet Temperature Humidity Sensor – ASCII over Ethernet, USB-C/12V DC₹7,211
Agametic WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – MQTT over Ethernet, TCP/IP, Modbus RTU, 5V/12V DC: another version this guide coversAgametic WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – MQTT over Ethernet, TCP/IP, Modbus RTU, 5V/12V DC₹7,211
Wittelb WIN-SN-TnH+IAQ-W Digital Temperature & Humidity Sensor with Internal Air Quality (IAQ) – Modbus/MQTT over Wi-Fi: another version this guide coversWittelb WIN-SN-TnH+IAQ-W Digital Temperature & Humidity Sensor with Internal Air Quality (IAQ) – Modbus/MQTT over Wi-Fi₹6,424
Wittelb WIN-SN-TnH-AHT20-AO-C Digital Temperature & Humidity Sensor – Analog Output (4-20mA): another version this guide coversWittelb WIN-SN-TnH-AHT20-AO-C Digital Temperature & Humidity Sensor – Analog Output (4-20mA)₹5,637
Wittelb WIN-SN-TnH-AHT20-AO-V Digital Temperature and Humidity Sensor with Analog Output Voltage Signal: another version this guide coversWittelb WIN-SN-TnH-AHT20-AO-V Digital Temperature and Humidity Sensor with Analog Output Voltage Signal₹5,637
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
SMPS power supply in metal enclosure (5/12/24 V): a 12 V or 24 V supplySMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
MAX485 RS-485 to TTL module: to read the Modbus sensor from a microcontrollerMAX485 RS-485 to TTL Module₹28
Alternatives and when to choose them
- RS485 temperature humidity sensors: cheaper, need a bus.
- MQTT and Home Assistant: receiving the data.
- Humidity transmitters: other analog-output types.
Common mistakes to avoid
- DHCP addresses that change.
- No alerts set.
- Placing behind racks in hot air.
- Default passwords.
Frequently asked questions
How do I find the sensor's IP address?
Use the vendor's search tool or check your router.
Can it send alerts?
Yes. It sends alerts by email, SNMP traps or relay outputs.
Can it work with Home Assistant?
Yes. Read it in Home Assistant over MQTT or Modbus TCP.
Is PoE supported?
Many models support PoE, so one cable carries power and data.
Where should I place it in a server room?
At the front of racks where cold air enters.
Parts for this guide
Winsen WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – Modbus TCP/RTU, MQTT, I2C Interface₹7,211View- ₹7,211View
Agametic WIN-SN-TNH-E Ethernet Temperature & Humidity Sensor Module – MQTT over Ethernet, TCP/IP, Modbus RTU, 5V/12V DC₹7,211View
Wittelb WIN-SN-TnH+IAQ-W Digital Temperature & Humidity Sensor with Internal Air Quality (IAQ) – Modbus/MQTT over Wi-Fi₹6,424View- ₹5,637View
Wittelb WIN-SN-TnH-AHT20-AO-V Digital Temperature and Humidity Sensor with Analog Output Voltage Signal₹5,637View- ₹389View
- ₹298View
- ₹177View
- ₹28View
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
