Python is a versatile programming language that is regarded as easy to learn. This Python Temperature Sensor guide on how to read the temperature of the environment with python and IDLE on Windows PC.
The USB Temperature Sensors are ideal for OEM , Server room, Smart freezers and Hobbyist applications
Python is Run on a Windows PC or Linux system, they do not typically have hardware sensors to monitor the environment. Therefore the USB port is used to interface with the USB Temperature Sensor.
This python temperature sensor guide will use a plug and play USB Temperature sensor UTS-T11. This is an easy to use temperature sensor that will be connected to through the serial port. The UTS-T11 has an ASCII output.
Compatibility
Any Computer system that has a USB port such as:
- Windows PC
- Linux PC
- Raspberry Pi
- ROCK
- Mini PC’s
Steps to read the temperature with python
Prerequisites
- Python3 installed
- Pyserial installed
- IDLE
- Free USB port
Python Temperature Sensor Windows Example Video
Python Temperature Sensor Using IDLE on a Windows PC
- Plug in the USB Temperature Sensor UTS-T11
- Open IDLE
- Open the example Python Temperature sensor python script
- Click run
- Watch the temperature stream through
Python Temperature Sensor with a Raspberry Pi