Thanks Joe, helped a lot, did not know that arduino already had everything ready, good to know, Why do it by hand gave me a lot of work, you're right, I will read the adc and make a range of detection. I hope for sure! The chem is an Arduino I bought in China and will take one month to arrive. = /