I have had a couple of USB temperature sensors in my collections for some time now. They are the PCsensor Temper units from Tenx Technology, Inc.. The USB Vendor ID is 1130 and the Product ID is 660C. I wanted to use them in my Linux environment, as part of my home monitoring system. I also wanted to interact with them using Python, since that is my preferred language for most of my monitoring and robotics projects. I didn’t look very hard but didn’t find anything that someone else had already written in Python, which worked out well because I wanted to exercise my new-found PyUSB skills. I couldn’t find a datasheet for the devices but I did find a C version on Robert Kavaler’s ‘blog.

My Python class to read the temperature from the TEMPer unit is here.

Advertisements