4 Replies Latest reply on Jan 17, 2018 12:09 PM by festes RSS
    festes Newbie

    Connecting DS18B20 to Thingworx

    I have modified 'AdafruitDHT.py' script from the tutorial to connect AM2302 sensor to thingworx, and used it to bind DS18B20 sensor.

    Following is the script I have used to replace existing file in line 57 of 'TempAndHumidityThing':


    import w1thermsensor


    sensor = w1thermsensor.DS18B20

    pin = '4'

    temperature = w1thermsensor.read_retry(sensor, pin)


    if temperature is not None:





    It gives 'command not found' error


    Can anyone please help?