Timeline for How to obtain the type of DHT sensor
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 15, 2019 at 21:22 | comment | added | Michel Keijzers | Ok, than use your method in case you don't know, and use mine if you want to do it programmatically... Actually, you could combine both solutions by creating (dynamically) the correct type after your 'one time check', Create a pointer to MyDht, and create either a DHT11 or DHT12 instance. | |
Dec 15, 2019 at 21:18 | comment | added | zhekaus | Actually it is possible. If DHT type is wrong, I get empty results. Then I try another type and the results are correct. | |
Dec 13, 2019 at 22:32 | history | answered | Michel Keijzers | CC BY-SA 4.0 |