Search found 1 match

by pytyler
Sun Apr 11, 2021 10:31 pm
Forum: ESP8266 boards
Topic: esp8266-01 using dht11 sensor not working
Replies: 0
Views: 1577

esp8266-01 using dht11 sensor not working

I am using esp8266-1m-20210202-v1.14.bin on a esp8266, esp-01 and have a dht11 3 pin sensor connected to GPIO2 I have tried: from machine import Pin from dht import DHT11 import time sensor = DHT11(Pin(2)) sensor.measure() dht_temperature = sensor.temperature() dht_humidity = sensor.humidity() print...