|

Using a Serial Server to Connect Temperature Sensors: A Practical Guide

tablet 2471184 1280

⚡ Quick Specs: RS485 vs. Ethernet for Sensors

SpecificationRS485 (Field Level)Ethernet (Control Room)
Max Distance1,200 meters (theoretical)100 meters (Copper) / 10km+ (Fiber)
TopologyDaisy-chain (Linear)Star / Ring
Protocol SupportModbus RTU / ASCIIModbus TCP / MQTT
Role in NetworkSensor Data CollectionHigh-Speed SCADA Backhaul

Temperature Sensors and Serial Communication: A Quick Background

Before we start setting things up it is useful to know what kind of sensors we are working with. Temperature sensors are really common—they make up roughly 50% of all industrial sensors according to a 2021 IEEE industry report.  The main kinds of temperature sensors include:

  • Thermocouples – rugged, wide range, but low accuracy
  • Thermistors – high accuracy over a narrow range
  • Analog sensors (4–20mA, 0–10V) – need analog input modules
  • Digital sensors (DS18B20, SHT series) – often use 1-Wire or I²C, but some have serial output

Most industrial temperature sensors communicate data over RS485 with the Modbus RTU protocol. The main advantage of RS485 is that it is multi-drop, so you can daisy-chain several sensors along a single two-wire twisted pair. This linear topology greatly reduces cable clutter and installation costs to deploy dense sensor arrays throughout a facility.

The Valtoris serial server that we are using can handle RS232, RS485 and RS422. So it can work with temperature sensors that you will come across.

What You’ll Need

  • A Valtoris single-port serial server (model depends on your sensor’s interface: RS232, RS485, or RS422)
  • Your temperature sensor(s) with serial output
  • Ethernet cable and network switch
  • Power supply (9–24V DC, terminal block or DB9 depending on model)
  • A computer with Vircom software (free from Valtoris) installed

Step 1: Hardware Connections

Serial Server for emperature Sensors
  1. Connect the sensor to the serial server
    • If your sensor uses RS232, use a straight-through DB9 cable (or wire the appropriate pins: RX, TX, GND).
    • For RS485, connect A(+) and B(-) terminals. If you have multiple sensors, daisy-chain them (A to A, B to B).
    • For RS422, connect TX+, TX-, RX+, RX- as needed.
  2. Connect the server to your network
    Plug an Ethernet cable from the server’s RJ45 port into a standard network switch that’s connected to your computer.
  3. Power up
    Apply 9–24V DC power via the screw terminals (or DB9 for RS232 models). The LED indicators should light up.

Step 2: Software Configuration

Serial Server Connect Temperature Sensors P2

The Valtoris serial server comes with a free utility called Vircom. Download and install it on your computer.

  1. Open Vircom – It will automatically discover any Valtoris serial servers on the same network. Select yours from the list.
  2. Set the IP address – By default, the server uses DHCP. If you prefer a static IP (recommended for SCADA integration), go to the network settings and assign one, e.g., 192.168.1.188. Make sure it’s on the same subnet as your computer.
  3. Configure serial parameters – Match these to your sensor’s requirements: baud rate (e.g., 9600), data bits (8), stop bits (1), parity (none). This information is in your sensor’s datasheet.
  4. Create a virtual COM port – In Vircom, go to the “Virtual Serial Port” tab and add a new port (say COM5). Bind it to your serial server. Now any software on your PC can access the sensor through COM5 as if it were directly connected.

Step 3: Reading Sensor Data

Now that the hardware and software are set up, you can start collecting data.

  • If your sensor uses a custom protocol – Open your own application (e.g., Python script, LabVIEW) and open the virtual COM port (COM5). Read and parse the data according to the sensor’s protocol.
  • If your sensor uses Modbus RTU – You can use SCADA software like KingView, WinCC, or even free tools like Modbus Poll. Configure the software to communicate via COM5, with the correct Modbus slave ID and register addresses.
  • If your sensor supports Modbus TCP – Some newer sensors have built-in Ethernet. In that case, you can bypass the virtual COM port and have the SCADA talk directly to the serial server’s IP address (e.g., 192.168.1.188) using Modbus TCP.
Sensor TypeInterfaceProtocolTypical Baud RateConfiguration Notes
PT100 RTD (with transmitter)RS485Modbus RTU9600Slave ID=1, read holding registers
K-type thermocouple moduleRS232Custom ASCII4800Send command “READ” to get temperature value
SHT75 digital sensorRS232Custom binary19200Data format: 2 bytes temp + 2 bytes humidity
Infrared thermometerRS485Modbus RTU115200Read input register address 0x0001

What We’ve Learned from Real Installations

Over the years, we’ve helped set up dozens of temperature monitoring systems using serial servers. Here are a few things that aren’t always obvious from the manuals:

  • Cable length matters: While the RS485 standard theoretically reaches 1200 meters, high-EMI factory environments often limit reliable transmission to under 800 meters. Pushing beyond this threshold without proper industrial shielding or fiber optic converters invites data corruption.
  • Ground Loops Cause Headaches: When sensors are distributed across large physical distances, variations in ground potential can easily corrupt your serial data. To prevent this, always utilize optically isolated RS485 converters—a standard feature in the Valtoris lineup—and ensure your cable shielding is grounded at only one end of the bus to prevent current loops.
  • Modbus addressing – When you connect sensors together each sensor must have its own special Modbus address. Some of these sensors have the address 1 when they come from the factory. So you will have to change the Modbus address of each sensor one at a time using software. You have to make sure each sensor has a Modbus address.
  • Power separately – Many sensors draw power from the same cable as data (RS485 uses two wires for both). If you have many sensors, voltage drop can be an issue. Consider using a separate power supply or a powered hub.

DIY Cable vs. Serial Server: Which One Makes Sense?

You might be thinking: why not just run a long serial cable or use a USB-to-serial adapter? Here’s a quick comparison:

SolutionProsCons
Long serial cableLow cost, simpleDistance limited (RS232 15m, RS485 up to 1200m but needs termination), prone to interference
USB-to-serial adapterPlug-and-play, cheapOne adapter per sensor, distance still limited, messy with many devices
Serial serverUnlimited distance (via network), multi-device sharing, remote access, noise immuneHigher initial cost, basic networking knowledge needed

If you have a sensor that is close to the computer a USB adapter is okay.. When you have multiple sensors all over a factory floor a serial server is a good idea. The serial server helps with reduced cabling. It is easier to maintain the sensors. This is because the serial server can handle sensors at the same time. So, for sensors a serial server is a better choice.

Final Thoughts

📊 Hardware Selection Matrix: Which Serial Server Do You Need?

Application ScenarioSensor CountTopology LimitationRecommended Hardware
Single Furnace / Machine1 – 15 nodesLinear daisy-chain1-Port Serial Server (VT-xx)
Distributed Floor (Scattered)15 – 50 nodesForced Star Topology4-Port RS485 Hub + Server
High-Speed Real-time SCADA50+ nodesParallel multi-bus8-Port Serial Gateway

⚙️ Ready to Upgrade Your Sensor Network?

Valtoris engineers rugged, industrial-grade serial servers designed specifically for harsh SCADA environments. Whether you need a single-port drop-in solution or a multi-node aggregation gateway, our hardware ensures your Modbus temperature data never drops.

👉 [Explore the Valtoris Single-Port Serial Server Series]

Quick Reference: Pinout for Common Connections

[RS232/RS485/RS422 Pinout Quick Reference]

InterfaceSignalDB9 PinSuggested Wire Color
RS232TX2Yellow
RS232RX3Green
RS232GND5Black
RS485A(+)White
RS485B(-)Blue
RS485GNDBlack (optional)
RS422TX+White
RS422TX-Green
RS422RX+Red
RS422RX-Black

Frequently Asked Questions

Q1: Can the serial server power the temperature sensors directly over the RS485 port?

A: No. Standard serial servers (including our single-port series) only provide data communication (A, B, and GND) on the RS485 terminals. They do not supply power. Most industrial temperature sensors require an independent 12V or 24V DC power supply. We recommend installing a high-quality DIN-rail power supply in your control cabinet to power all sensors on the RS485 bus uniformly.

Q2: Will there be data latency if I daisy-chain 20 temperature sensors on a single RS485 port?

A: Yes, there will be a small delay of a few milliseconds to a few seconds. Your SCADA system has to poll each sensor’s Modbus ID one at a time because RS485 is half-duplex. Polling 20 nodes at a standard baud rate of 9600bps takes about 1 to 2 seconds. We suggest splitting the long bus and upgrading to a Multi-Port Serial Server if your application needs high-frequency real-time acquisition. This will get rid of queuing delays by using multi-channel parallel polling.

Q3: The field conduit layout makes daisy-chaining impossible. Can I wire the sensors in a Star Topology?

A: Native RS485 strictly prohibits star topologies. Forcing multiple branches into a single port causes severe signal reflection, impedance mismatch, and data loss. If your physical layout requires star wiring, you must install an [Industrial 4-Port RS485 Hub] upstream of the serial server. This active hub isolates and splits the signal into four independent branches, perfectly solving complex wiring challenges.

Q4: Our SCADA software only supports Modbus TCP, but the temperature sensors output Modbus RTU. Can this server translate the protocols?

A: Yes. By enabling the built-in Modbus Gateway mode in the web configuration interface, the device automatically performs seamless, edge-level conversion between RTU and TCP packets. You do not need an additional protocol conversion gateway. For tips on configuring SCADA timeout thresholds and polling mechanisms, refer to our practical guide: [Fixing Timeout Errors: How to Set Up a Modbus RTU to TCP Gateway]

REQUEST A QUOTE

SKU/Part No.