I would like to read a sensor data using voltage divider; however, I dont want to use a resistance in series with the sensor. I am aware that I can use PULLUP/DOWN resistors instead of this additional resistor. I tried that on an Arduino Mega board and it worked perfectly uisng the below line of code:
pinMode(A2, INPUT_PULLUP);
However, I was not successful when wanted to do the same using an Adafruit ESP32 board. Any clue?
The Huzzah has only one analog input A0, you can't use a pullup on the pin
The input voltage must be limited to 1.0V so you will need to use a voltage divider.
Thank you. But, I am a bit skeptical about your saying that the Huzzah has only one analog input. Because I used the same board for 5 analog inputs and it worked properly. It is also mentioned in the specs. Adafruit_Huzzah32-esp32_eng_tds.pdf (2.0 MB)
My only problem is that I can not use the pullup resistors as voltage dividers.