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.3K All Categories
  • 23.2K Community
  • 4.7K Announcements
  • 3.3K Promotions
  • 4.5K Community Discussion
  • 6.9K General Discussion
  • 9.2K Products & Technology
  • 2.7K Raspberry Pi & CrowPi
  • 824 Arduino & Crowduino
  • 732 CrowView Series Screen
  • 1.1K Elecrow HMI Display
  • 1K ESP32 & Lora
  • 38 Meshtastic
  • 495 TFT-LCD & Touch Screen
  • 282 STEAM Education
  • 259 Micro: bits
  • 479 Crowbits
  • 269 Projects
  • 690 PCB & PCBA Services
  • 283 PCB Design Questions
  • 199 Manufacturing Question
  • 174 Projects
  • 861 Elecrow partner seller
  • 222 Elecrow support
  • 204 Partner Seller Products
  • 363 Discussion
  • 62 Resources Download

© Elecrow Stone 2026