Many ESP32 S3 application need a stable Z level to correct voltage conversion. Typically, a easy method involves a 1k resistance associated to the Z level output and earth. This creates a well-defined level, typically https://compoden.com/collections/motors