photo interruptor sensor circuit as a switch