thanks mel, with that it helps me a lot to gather data from the ADC. Now that I have the data I just want to ask about SELECT CASE, you see I have a program that uses if...then...else..enif and my code was so long I need to shortened it using SELECT CASE. on the if..then.. command I can have two arguments like

if x<=100 and x<=200 then
.
.
.

I tried select but it doesnt have AND/OR. Is there any other way to shortened my program to make my program execute faster?