Connecting pre-built feeder circuit to MCU

So this is a circuit of an automatic feeder. I wanted to connect it to the MCU (ESP32) so that I could control the motor and its speed. I want to connect it to the mcu so that I can control the feeder through the arduino cloud, but I also wanted to retain the manual feeding (using the push button). I also wanted to retain it's power source, meaning the feeder will still be battery operated (3V).

Can someone help me on where I should connect, or how can I modify the circuit to be connected to the MCU?

Here's the picture of the circuit


Find another identical motor and begin to learn how to control the speed of that motor, then you can adapt that to the real feeder motor.