Page 1 of 1

GPIO INPUT ONLY

Posted: Fri Aug 17, 2018 10:55 am
by Rodrigofraga
I have a problem when try to use GPIO INPUT ONLY pins. I'm using DHT22 to do some tests in Esp32 boards. When I use GPIO normal pins I have correct informatios in serial monitor. But when I use pins INPUT ONLY all informations about temperature and humidity are ZERO. I tryed to use a pullup resistor un data pin, I used digitalread() and nothing.
I have been using ARDUINO IDE.
I did tests with others sensors and had the same problem. Anybody does know what happen?

Re: GPIO INPUT ONLY

Posted: Fri Aug 17, 2018 2:59 pm
by xvinny
Which pins did you use? Could you post a snippet of your code?

Re: GPIO INPUT ONLY

Posted: Mon Aug 20, 2018 11:35 am
by Rodrigofraga
I was reading about sensors and discover that dht22 needs a normal GPIO ( input and output) because this sensor has a pritocol to comunicate with esp32.