Question
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:
print('Temp={0:0.1f}*C'.format(temperature))
sys.exit(1)
It gives 'command not found' error
Can anyone please help?

