pyupm_th02 module

class pyupm_th02.TH02(bus=0, addr=64)[source]

Bases: object

API for the TH02 Temperature & Humidity Sensor.

ID: th02

Name: Temperature and Humidity Sensor Pro

Other Names: Grove Temperature & Humidity Sensor (High-Accuracy & Mini)

Category: temp

Manufacturer: seeed

Link:http://www.seeedstudio.com/wiki/Grove_- _Tempture%26Humidity_Sensor_ (High-Accuracy_%26Mini)_v1.0

Connection: i2c This module defines the TH02 interface for libth02

Note: For use on Intel(R) Edison with an Arduino* breakout board, Intel Edison must be set to 3 V rather than 5 V.

C++ includes: th02.hpp

getHumidity()[source]

float getHumidity()

Gets the humidity value from the sensor.

getStatus()[source]

bool getStatus()

Gets the sensor status.

getTemperature()[source]

float getTemperature()

Gets the temperature value from the sensor.

name()[source]

std::string name()

Returns the name of the component