After a reboot I can succesfully establish a connection with the HumiditySensor using the following script.
Code: Select all
from Phidget22.Devices.HumiditySensor import *
Phidget.resetLibrary()
#serial: 627720
def onHumiditySensor0_Attach(self):
print(f"Attach HumiditySensor! {self.getHubPort()}")
hum = HumiditySensor()
hum.setOnAttachHandler(onHumiditySensor0_Attach)
hum.openWaitForAttachment(10000)
hum.close()