Not reads the DHT22 sensor. What to do?

A Arduino Uno and a DHT22 sensor. Use the dht library and the Adafruit Unified Sensor to output readings of temperature and humidity. But get the error "Failed to read from DHT sensor!!!
". Photo diagram attached, used the example program dhtTester. What am I doing wrong and how to solve this problem?5cf28aa7e548b120399732.jpeg5cf28af86e8c6153061994.png
March 23rd 20 at 18:40
1 answer
March 23rd 20 at 18:42
In my opinion one of the wires should be stuck to GND(always has, the earth is always common) and the other at 5V.
Your scheme can't work in principle - there's no electricity at the sensor.
Hooked up without a resistor between data and power and everything started to work, initially, the power and ground were connected. - Bobbie_Berge commented on March 23rd 20 at 18:45
@Bobbie_Berge, why do not you want a pull-up resistor to supply? you have in your code pin is configured accordingly? - Euna43 commented on March 23rd 20 at 18:48

Find more questions by tags keyboard sensorsElectronicsArduino