Proximity sensor

crocoscore:
Is this a transistor :

That is what i meant by "transistor", as that is the most common part in that (TO92) casing but it really can be anything that requires 3 wires.
The number S9994 on it doesn't turn up anything identifying it so i don't know what it is or is supposed to do.
Somehow i missed the fact that there are 2 of these parts on the PCB.
Do both of them have the same written on it ?

The HA17324 is a quad opamp (an amplifier), which makes sense.