• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Two DHT11s on ESP? @Course: Home Autom. 100$

Q&A Forum › Category: Home Automation › Two DHT11s on ESP? @Course: Home Autom. 100$
0 Vote Up Vote Down
Hans-Peter asked 6 years ago

I am stuck with adding a second DHT11 to my ESP publishing to mosquitto on raspi.
I am using the code I bought with the home automation course.
It works perfect. Thanks for your work.
Now I´d like to add a second/third DHT11 sensor to publish.

3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello Hans! Just to double-check, do you want to publish multiple DHT readings with just one ESP8266 board?

  • If yes, you can use this post that has a code example on how to read 2 DHT sensors: http://diy-scib.org/blog/multiple-dht-humidity-sensors-arduino
  • Then, you can duplicate that code to publish the readings to 2 different MQTT topics in your code

I hope that helps. Regards,
Rui 

0 Vote Up Vote Down
Hans-Peter answered 6 years ago

That is what I wanted to do. It is working fine now.
Thanks a lot
Hans

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

I’m glad you were able to make it work! I’ll mark this post as “Closed“. If you have more questions, feel free to submit a new question: https://rntlab.com/ask-question/

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.