Method checkDevice

Return the deviceId