buggy code/ with PID/ with stoppage/using distance - Wokwi ESP32, STM32, Arduino Simulator