> Yes. I am thinking about a way to make sure that there won't be > a 1 for a 0 and vv Modulating the light source (PWM module or separate oscillator) would help, with a band-pass filter on the sensor output. I tried one of those reflective IR sensors once as a "touch" button, worked OK but went with something else in the end Like this (238kB) http://www.optekinc.com/pdf/OPB740.pdf -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist