Im trying to make a algorithm in python to detect if my phone is in the area. Im using this to find my device:
bluetooth.discover_devices()
But it only detects my phone if I set my Bluetooth on my phone to "visible". 
Is there a function or command to detect my phone when it's set to hidden?
Im fairly new to python so any form of help is very welcome! 
Thanks in advance!
You could attempt to connect to your phone.  If it's nearby, the connection will succeed.  Devices can be connectable when they are not discoverable.  You would have to already know the device address of your phone (via discovery when your phone was visible) in order to initiate the connection.
How to find bluetooth devices not set to visible in python?