Skip to content

Instantly share code, notes, and snippets.

import adafruit_dht
import board
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import time
dht = adafruit_dht.DHT11(board.D18, use_pulseio=False)
temps, times = [], []
start = time.time()
fig, ax = plt.subplots()