1. A light emitting diode (LED) device, comprising:a light emitting element comprising:
a semiconductor stack comprising an n-type layer, an active layer and a p-type layer, a surface of one of the p-type layer and the n-type layer forming a first surface of the light emitting element,
an electrical isolation region electrically isolating the semiconductor stack into an emitter segment and a photosensor segment, and
a transparent substrate disposed over both the emitter segment and the photosensor segment to form a second surface of the light emitting element;
at least one anode electrode disposed on the first surface of the light emitting element; and
at least one cathode electrode disposed on the first surface of the light emitting element,
each of the emitter segment and the photosensor segment being electrically coupled to one of the at least one cathode electrode and one of the at least one anode electrode.