Using Mac as a Sensor?

Is it possible to use a Mac as a proximity sensor with bluetooth? In a nutshell, I’d like my Mac to detect when my phone is really close (within 10 feet), if it is, then to wake it up and log in.

There are native apps available for that. Just google something like mac bluetooth unlock.

I figured… i was going to have it do some other stuff as well, but i wanted to start with the basics