analogIn_PWMOut.py

Hookup Pattern

force_analogIn_PWMOut

  1. Connect Sensor Pin3 to ESP32 3V
  2. Connect Sensor Pin2 to ESP32 34
  3. Connect Resistor Pin2 to ESP32 GND
  4. From pin 27, connect the following in series: a Resistor to an LED to GND

Follow along on your ESP32:

For Example

# analog in to pw...