Search found 2 matches

by Neel91
Sun Aug 07, 2022 10:35 am
Forum: General Discussion
Topic: Node MCU 32s irregular input in digital read
Replies: 3
Views: 2163

Re: Node MCU 32s irregular input in digital read

Thanks for the reply
This screenshot is for an open GPIO pin . When i connect the GPIO to the proximity sensor it stays on while the sensor is on but when the sensor is off it reverts back to the irregular behaviour. Can this be avoided somehow?
by Neel91
Sat Aug 06, 2022 8:04 am
Forum: General Discussion
Topic: Node MCU 32s irregular input in digital read
Replies: 3
Views: 2163

Node MCU 32s irregular input in digital read

I am using the following code to read digital input. I am using an Node MCU-ESP32s and arduino IDE. The input is irregular, always fluctuating between 1&0 void setup() { Serial.begin(9600); pinMode(32,INPUT); // put your setup code here, to run once: pinMode(2,OUTPUT); } void loop() { int i=digitalR...