hi adam, i manage to get it works using this code, made few changes on the code and save it in cayenne directory, the widget appears but it keep showing the device is offline and online, non-stop connecting and disconnecting.
import adafruit_dht
from board import *
import cayenne.client as cayenne
import time
You appear to have some wiring problems. It shouldn’t take that long to get a valid reading. Are you sure the adafruit test python script was working correctly?
hi adam, sorry for the late reply, im feeling under the weather, i have double check the wiring, its connected right. and i have follow the adafruit test python script correctly. i have double confirm by changing all the wiring, but still it keep online and offline for a while then it appear offline.
You can find many useful beginner projects on DHT11 Temperature and Humidity sensor here With Raspberry Pi, ESP32 M Ardiono and other microcontroller —DHT11 with Raspberry Pi