Peter wrote: >> Any reason not to simply look for the light when the lamp is on? You >> know using an opto detector of some type. Larry > > ambient light But why would you be turning on a lamp if there is lots of ambient light? ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist