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

  • 2.9K All Categories
  • 1.3K Community
  • 356 Announcements
  • 216 Promotions
  • 383 Community Discussion
  • 238 General Discussion
  • 1.8K Products & Technology
  • 242 Raspberry Pi & CrowPi
  • 338 Arduino & Crowduino
  • 96 CrowView Series Screen
  • 442 Elecrow HMI Display
  • 154 ESP32 & Lora
  • 143 TFT-LCD & Touch Screen
  • 33 STEAM Education
  • 78 Micro: bits
  • 93 Crowbits
  • 79 Projects
  • 205 PCB & PCBA Services
  • 70 PCB Design Questions
  • 58 Manufacturing Question
  • 68 Projects
  • 195 Elecrow partner seller
  • 68 Elecrow support
  • 78 Partner Seller Products
  • 54 Discussion
  • 9 Resources Download

© Elecrow Stone 2025