We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have been using two DHT11s and the library that is specific to the DHT11 allows for specifying each sensor with a specific pin.
Can I do this with this new library using two DHT22s? Thanks Bruce
The text was updated successfully, but these errors were encountered:
Couldnt you instantiate two DHTs by doing
DHT dht; DHT dht2;
Sorry, something went wrong.
Adding the following also works
DHT dht[2]; setup(){ Serial.begin(9600); dht[0].setup(5); //pin 5 dht[1].setup(23); //pin 23 } loop(){ int i=0; while(i<2){ serial.println( dht[i].getTemperature() ); serial.println( dht[i].getHumidity() ); i++; } delay(3000); }
No branches or pull requests
I have been using two DHT11s and the library that is specific to the DHT11 allows for specifying each sensor with a specific pin.
Can I do this with this new library using two DHT22s?
Thanks
Bruce
The text was updated successfully, but these errors were encountered: