Can I change a pin's designation on the ESP32S3 to either analog (A) or digital (D) with an "if" statement in the loop?

Right now I am using an Arduino Pro Mini and sending data to ESP8266 via TX and RX. Started looking at ESP32S3 because it have a more powerful WiFi so was going to replace 8266 with 32s3. Then I thought of just using ESP32S3 to reduce components and it has Deep Sleep to reduce power consumption. I will continue experiments. Will at least swap out ESP32S3 for ESP8266. Thanks.

1 Like

I’ve been doing some experimenting and you were correct in that the non-contact water sensors do work on 3.3 volts so no relays needed. Also changing between pinMode(A2,INPUT) and pinMode(D2,INPUT) within the if statements in the void loop() worked great. I am now getting the readings from both on the same pin. Thanks a LOT.

1 Like

Thanks for keeping us up to date