The lascar module¶
Autogenerated API documentation for lascar¶
Driver for the EL-USB-RT temperature and humidity USB device from Lascar
Calling read on the device will return either the temperature or the humidity.
If the first byte is it is a temperature. The next 2 bytes is a unsigned integer which, is used to calculate the temperature as:
temp = -100 * 0.1 * (unsigned_short)
If the first byte is it is humidity. The next byte is an unsigned char, which is used to calculate the relative humidity as:
humidity = 0.5 * (unsigned_char)