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.
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,