scans for devices and logs them