Arduino Bluetooth Range Control I am creating a project that uses Bluetooth, But unfortunately it requires some kind of control of the range. I was thinking a potentiometer controlling the power going to the transmitters antenna. But I have no clue how I would program this. Can anyone help me out or point me in the right direction? Thanks 

EDIT
Okay I am making this because I am designing a sensor that tells if you are in a room. For example when you leave the room the Bluetooth single is no longer in range then it notifies the arduino. I am not sure if you can do this but I cant see why not.
This should not be the solution to your problem which is btw. not exactly clear. Do you want to prevent people outside of this range to connect, or do you have some sort of interference problem (in this case it might be legitimate)? 

Unauthorized access should not be controlled by range because it depends not only on your sender antenna but also on the gain of the receiving device. Anyways, in the frequency bands and energy levels of a Bluetooth antenna a potentiometer will not work. 

Implement access control beyond the pairing in your application.

There should be some fancy Bluetooth devices that allow for energy control. Especially, low-energy devices.