How can I Make a Phone call as PIR sense the motion

How is the connection between ESP32 and your app? Bluetooth component? Web component?

You need a process running in your app, which waits for the message from the ESP32 to do something

Look into the itoo extension

Taifun