New Search

If you are not happy with the results below please do another search

1 search result for:

1

Raspberry PI DHT Thingspeak Python3

import Adafruit_DHT from time import time, sleep from urllib.request import urlopen import sys WRITE_API = “Your ThingSpeak Write API” # Replace your ThingSpeak API key here BASE_URL = “https://api.thingspeak.com/update?api_key={}”.format(WRITE_API) SENSOR_PIN = 8 #GPIO 8 SENSOR_TYPE = Adafruit_DHT.DHT11 SensorPrevSec = 0 SensorInterval = 2 # 2 seconds ThingSpeakPrevSec = 0 ThingSpeakInterval = 120 # 120 seconds […]