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.5K All Categories
  • 18.6K Community
  • 4.1K Announcements
  • 2.6K Promotions
  • 3.2K Community Discussion
  • 5.4K General Discussion
  • 6.4K Products & Technology
  • 789 Raspberry Pi & CrowPi
  • 746 Arduino & Crowduino
  • 542 CrowView Series Screen
  • 957 Elecrow HMI Display
  • 927 ESP32 & Lora
  • 453 TFT-LCD & Touch Screen
  • 254 STEAM Education
  • 243 Micro: bits
  • 463 Crowbits
  • 252 Projects
  • 587 PCB & PCBA Services
  • 224 PCB Design Questions
  • 181 Manufacturing Question
  • 158 Projects
  • 555 Elecrow partner seller
  • 194 Elecrow support
  • 176 Partner Seller Products
  • 163 Discussion
  • 22 Resources Download

© Elecrow Stone 2025