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

  • 1.6K All Categories
  • 21.2K Community
  • 4.5K Announcements
  • 3K Promotions
  • 4.2K Community Discussion
  • 6.1K General Discussion
  • 9K Products & Technology
  • 2.7K Raspberry Pi & CrowPi
  • 805 Arduino & Crowduino
  • 708 CrowView Series Screen
  • 1.1K Elecrow HMI Display
  • 986 ESP32 & Lora
  • 23 Meshtastic
  • 487 TFT-LCD & Touch Screen
  • 272 STEAM Education
  • 256 Micro: bits
  • 479 Crowbits
  • 266 Projects
  • 682 PCB & PCBA Services
  • 283 PCB Design Questions
  • 195 Manufacturing Question
  • 172 Projects
  • 711 Elecrow partner seller
  • 218 Elecrow support
  • 203 Partner Seller Products
  • 221 Discussion
  • 62 Resources Download

© Elecrow Stone 2026