Sensor network distributed facility problem using RSSI to measure distance and use it to calculate co-efficient