How To Log the Temperature With Linux USB Thermometer

Linux Temperature Sensor

This is a complete guide on how to monitor the temperature with a Linux system. A great USB Temperature sensor to monitor

  • Network server rooms.
  • weather stations.
  • various IT infrastructure.

We can customise the probes , Firmware and Offer Bulk OEM Discounts

Jumping right in, OnlineSensors have USB Temperature sensors for Linux systems.

Linux Temperature sensor models

UTS -T11
UTS -T11
UTS-T4 usb temp sensor cost effective
UTS-T4
USB Thermometer
UTS-D1-E

UTS-T11

UTS -T11
  • Temperature range -24°C to 103°C
  • IP67 + 1.5m cable
  • Serial ASCII output for easy Linux sensor integration
  • Code Examples
  • Windows, Linux and Raspberry Pi compatible
  • Bulk order discounts
  • Plug and Play
  • Windows , MAC and Linux compatible
  • Free USB sensor GUI with graph , logging and visualization.

UTS-T4

UTS-T4 usb temp sensor cost effective
  • Temperature range -10°C to 90°C
  • Serial ASCII output for easy USB Linux Sensor integration
  • Ask about bulk pricing
  • USB Thermometer 175mm length.
  • Easy USB Integration with engineering support
  • Free USB sensor GUI with graph , logging and visualization.
  • Windows , MAC and Linux compatible
  • Small probe for fast response time

UTS-D1-E

USB Thermometer
  • Resolution of 0.5°C 0.25°C 0.125°C and 0.0625°C
  • Accuracy 0.5 °C within the range from –10 °C to +85 °C; outside -2 °C
  • Temperature output in ASCII format
  • 1.5 Cable length
  • Epoxy Probe 
  • Power supply from the USB connection
  • Ideal for Raspberry Pi and PC

All our USB Temperature sensor work the same way.

Applications

The UTS Linux Temperature Sensor range has multiple Application types.

  • OEM business (please get in touch for bulk deals)
  • Hobbyists for a quick temperature sensing solution
  • Educational facilities to quickly prove concepts and projects.

How To read the temperature with Linux

The best part of the article. A simplistic and streamlined approach like the Linux system.

To read the temperature follow the below steps that uses a Python example that is available.

Read the temperature by connecting to the serial port

  • A free USB port on the Linux system hardware
  • Plug the Linux UTS USB Thermometer into a USB port.
  • Connect to the USB serial port.

Linux Prerequisites

  • Access to the terminal
  • Python 3 installed  sudo apt-get install python3.6
  • pyserial installed pip install pyserial
  • Transfer the supplied python script to the Linux system.

Streaming Temperature with the python script

  • Plug in the UTS Linux thermometer into a free USB port.
  • Find the USB port that the Linux USB Temperature sensor has been connected to with command ls /dev/*USB*
  • Example of the command issued and the response.
  • Update the python script nano UTSPI.py with the displayed USB port. Exit and save.
  • Run Linux command python3 UTSPI.py .
  • Now the temperature will stream through!

 Video examples

Follow the videos in the links below for a demonstrated example on how to read the temperature with a Linux system. The videos show examples with Raspberry Pi and ROCK PI.

Of course contact if any questions.

Raspberry Pi Linux thermometer example

ROCK PI Linux example

Leave a Comment