If you not only want to have the light switched on when motion is detected, but also want to be informed (alerted) on your smartphone when a person enters the detection range.
For this case, automation is best suited, which you can set without any problems.
With the following logic:
When motion is detected , then message to the smartphone.