Use joystick to control servos on an esp32cam

Take a look here, maybe it will help you… Slider is used there instead of joystick