Coding Two LEDs and Potentiometer with cut off time on

Welcome

Here is an example pot.ino - Wokwi Arduino and ESP32 Simulator