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.9K All Categories
  • 22.3K Community
  • 4.5K Announcements
  • 3.2K Promotions
  • 4.4K Community Discussion
  • 6.6K General Discussion
  • 8.8K Products & Technology
  • 2.5K Raspberry Pi & CrowPi
  • 796 Arduino & Crowduino
  • 697 CrowView Series Screen
  • 1.1K Elecrow HMI Display
  • 972 ESP32 & Lora
  • 22 Meshtastic
  • 476 TFT-LCD & Touch Screen
  • 261 STEAM Education
  • 244 Micro: bits
  • 478 Crowbits
  • 256 Projects
  • 645 PCB & PCBA Services
  • 271 PCB Design Questions
  • 186 Manufacturing Question
  • 162 Projects
  • 777 Elecrow partner seller
  • 209 Elecrow support
  • 192 Partner Seller Products
  • 337 Discussion
  • 47 Resources Download

© Elecrow Stone 2026