A phototransistor is described in which there is included as a part of its integral structure an auxiliary diode in the form of an added base-collector junction. This junction is formed in the surface of the base element and thus out of the direct path between the emitter and collector regions of the phototransistor