KY-015 and DHT11 sensora


I tried to read a data from KY-015 sensor with code on this page, but i don't have DHT11 sensor and it cant read data from sensor. What do I need to change in sketch to be able to read data?



That look very much like a DHT11. *Install the DHT-library (from library manager) *Connect Ucc, GND -> ..and datapin to the pin you select in one on the examples of the library.

That should be it

I have installed DHT library, but serial monitor prints that it can't read data from sensor... check connections, add pullup resistor if not already present on the board

problem was in 2 refers to D9...I connect data to D1.... :confused: