4-pin photo resistor sensor