Enabled by regulatory initiatives and advanced radio technologies, more flexible opportunistic spectrum access has great potential to alleviate the spectrum scarcity. In this paper, we study the channel selection issue of secondary users in spectrum-agile communication systems. We focus on the sensing-based approach because it is simple and has low infrastructure requirements. We propose a two-step approach for channel selection. The first step is to determine whether or not a channel is idle and thus accessible to secondary users. We propose three algorithms to perform the accessibility check based on measurements of primary signals. Then we address the question whether an accessible channel is a good opportunity for a secondary user.