Mobile controlled maze

hi guys, :slight_smile:
I am working on my project, where I will tilt my phone and the maze board will follow my mobile's moving achse. On the board there are two stepper motor. I will do it with the ESP-32, because it has its own bluetooth module from which i will communicate with my movile via android app.

Could somebody help me reading the x.y-achse with the ESP-32?

Thanks,
Noor