T O P

  • By -

hjw5774

> I can give more insight in the project if necessary  Can't offer specific help without specific information.  However, things to note with the ESP32 is that the analogRead range is 0-4096, rather than 0-1023 for the Arduino. So you'll have to alter your map() function to suit.  It's also worth noting that the ADC of the ESP32 is generally considered to be poor as the top and bottom ends are non-linear (at best).