A method of controlling a plurality of devices including a remote foot pedal and two or more medical or dental devices, comprising: (i) providing the remote foot pedal as a master device and the two or more medical or dental devices as a plurality of slave devices; (ii) associating an address with each slave device and the master device; (iii) learning all addresses associated with each slave device and of the master device; (iv) communicating between the master device and at least one slave device includes both the master device address and the slave device address; (v) requesting an activity level from each of the plurality of slave devices; (vi) determining which slave device of the plurality of slave devices exhibits a predetermined threshold level of activity; (vii) selecting one slave device having the predetermined threshold level of activity; and (viii) controlling the selected slave device by the master device, characterized in that the method further comprises (a) associating with the activity level at least a first piece of information and a second piece of information; (b) determining each respective activity level by at least one sensor which is activated by a touch or a near touch of a hand or by a detection of motion; (c) representing by a number a level of activity a slave device has encountered over a predetermined interval; and (d) deriving of a time weighted average representing a direction of the level of activity, whereby after a predetermined timeout being the time since the foot pedal was last actuated, a new slave device is selected after the master device determines which is the most active slave device through the initialization process including step (v) and (vi). (i) providing the remote foot pedal as a master device and the two or more medical or dental devices as a plurality of slave devices; (ii) associating an address with each slave device and the master device; (iii) learning all addresses associated with each slave device and of the master device; (iv) communicating between the master device and at least one slave device includes both the master device address and the slave device address; (v) requesting an activity level from each of the plurality of slave devices; (vi) determining which slave device of the plurality of slave devices exhibits a predetermined threshold level of activity; (vii) selecting one slave device having the predetermined threshold level of activity; and (viii) controlling the selected slave device by the master device, characterized in that the method further comprises (a) associating with the activity level at least a first piece of information and a second piece of information; (b) determining each respective activity level by at least one sensor which is activated by a touch or a near touch of a hand or by a detection of motion; (c) representing by a number a level of activity a slave device has encountered over a predetermined interval; and (d) deriving of a time weighted average representing a direction of the level of activity, (a) associating with the activity level at least a first piece of information and a second piece of information; (b) determining each respective activity level by at least one sensor which is activated by a touch or a near touch of a hand or by a detection of motion; (c) representing by a number a level of activity a slave device has encountered over a predetermined interval; and (d) deriving of a time weighted average representing a direction of the level of activity,