Hi, I’m new to raspberry pi and sensors, but I want to monitor my room temperature and humidity using thinger.io dashboard. I’m getting my output on raspberry pi with my code but I don’t know how to monitor it using thinger.io. Can anyone help me out?
This is my code:
import Adafruit_DHT
DHT_SENSOR = Adafruit_DHT.DHT22
DHT_PIN = 4
while True:
humidity, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN)
if humidity is not None and temperature is not None:
print("Temp={0:0.1f}*C Humidity={1:0.1f}%".format(temperature, humidity))
else:
print("Failed to retrieve data from humidity sensor")