> >> 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? And I suppose you could put an LDR near to the lamp, where the light level from the lamp would be way above the ambient light level. Or you could detect the difference between lamp off and lamp on. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist