coding for TI CC2650 : JavaScript question
I appreciate any help anyone could give me with this. I have the Ti cc2650 SENSOR. What I wanted to accomplish is in JavaScript.
SCENARIO 1
•	So l setup a height value. 
•	The sensor is on the floor. Every time I pick the sensor and lift it to that height, the phone will do something(vibrate, play a small song, etc)
SCENARIO 2
•	The phone is on the top of the table;
•	The sensor is on the floor;
•	I pick up the sensor and the phone will tell me how far the sensor is the closer it gets;

1)	Which sensor(s) do I use to accomplish that?

Can anyone help?? Thank you for the eternity!!!
