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

  • 3.3K All Categories
  • 18.7K Community
  • 4.2K Announcements
  • 2.6K Promotions
  • 3.2K Community Discussion
  • 5.4K General Discussion
  • 6.4K Products & Technology
  • 779 Raspberry Pi & CrowPi
  • 745 Arduino & Crowduino
  • 541 CrowView Series Screen
  • 934 Elecrow HMI Display
  • 915 ESP32 & Lora
  • 447 TFT-LCD & Touch Screen
  • 253 STEAM Education
  • 243 Micro: bits
  • 462 Crowbits
  • 252 Projects
  • 587 PCB & PCBA Services
  • 225 PCB Design Questions
  • 180 Manufacturing Question
  • 158 Projects
  • 552 Elecrow partner seller
  • 192 Elecrow support
  • 176 Partner Seller Products
  • 162 Discussion
  • 22 Resources Download

© Elecrow Stone 2025