How To Log The Temperature With Linux [USB Linux Temperature Sensor]

How To Log The Temperature With Linux [USB Linux Temperature Sensor]

Linux Temperature Sensor

This is a complete guide on how to monitor the temperature with a Linux system Monitoring the Temperature with a Linux systems is typically used to monitor the temperature environment of

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

Many people and businesses use Linux, and some aren’t aware of it e.g. Raspberry Pi and Rock PI users. Others are hardened Linux advocates.

Jumping right in, OnlineSensors have USB Temperature sensors for Linux systems, their second most used application is to monitor server rooms and therefore lends itself to this article.

Linux thermometer models

Currently the UTS-T11-1500 and UTS-T4 are the popular Linux Temperature sensors.

UTS-T11 has an IP67protected probe with a 1.5 long cable.

UTS-T11 Linux Temperature sensor

UTS-T4 is cheaper with a smaller probe and sensor cable.

UTS T4 Cost effective Linux Temperature sensor

Types of use cases

The UTS Linux thermometer range has multiple applicator 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.

Without running Python, the below points are all that is required.

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

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

Please note, comments need to be approved before they are published.

  • ITEM BAR TITLE

    Share shipping, delivery, policy information.

  • ITEM BAR TITLE

    Share shipping, delivery, policy information.

  • ITEM BAR TITLE

    Share shipping, delivery, policy information.

  • ITEM BAR TITLE

    Share shipping, delivery, policy information.