> Shouldn't the 10k resistor be to the +ve line? As shown, there's > nothing to turn the transistor on. Don't forget the sensor has a pull-up -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist