ELECROW - FORUM ELECROW - FORUM
Home
Categories
Discussions
Sign In · Register
Sign In · Register
Categories
Discussions
Activity
Home
Sign In · Register
Home › Products & Technology › Raspberry Pi & CrowPi

Error of Python lesson “using the DHT11 sensor”.

ElecrowElecrow
November 2021 in Raspberry Pi & CrowPi

There is an error in the code of the lesson “using the DHT11 sensor”, as picture shown:


image.png


You need to change it like these:

Instance = dht11.DHT11(pin=4)

GPIO.setwarnings(True)

GPIO.setmode(GPIO.BCM)

Tagged:
  • Programming
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Quick Links

  • Categories
  • Recent Discussions
  • Activity

Categories

  • 7.1K All Categories
  • 23.1K Community
  • 4.7K Announcements
  • 3.3K Promotions
  • 4.5K Community Discussion
  • 6.9K General Discussion
  • 9.1K Products & Technology
  • 2.7K Raspberry Pi & CrowPi
  • 807 Arduino & Crowduino
  • 710 CrowView Series Screen
  • 1.1K Elecrow HMI Display
  • 988 ESP32 & Lora
  • 24 Meshtastic
  • 489 TFT-LCD & Touch Screen
  • 273 STEAM Education
  • 258 Micro: bits
  • 479 Crowbits
  • 266 Projects
  • 683 PCB & PCBA Services
  • 283 PCB Design Questions
  • 196 Manufacturing Question
  • 172 Projects
  • 852 Elecrow partner seller
  • 219 Elecrow support
  • 204 Partner Seller Products
  • 360 Discussion
  • 61 Resources Download

© Elecrow Stone 2026