Hi, my friends
In my nodeMCU project, I am defining some gpios as input. I will connect them some sensors. Although I am using pulldown resistors (10K), especially D3 and the other some data pins always stay in HIGH.
I want them to stay in LOW until the sensors outputs go to HIGH. My piece of code is as follows…What is the problem? Help me please…Thanks.
pinMode(16, INPUT); // define D0 as input
pinMode(5, INPUT); // define D1 as input
pinMode(4, INPUT); // define D2 as input
pinMode(0, INPUT); // define D3 as input