If the pic is able to sink the pull up resistor voltage, his original circuit will work with my suggestions. That's how my circuit works with only a measly slotted optical switch. Most of what I wrote is right! If he would have used the resistor on the gate, that I suggested, he wouldn't have...