1. A light emitting device comprising:a substrate;
a light emitting element situated on the substrate;
a lens element having a cavity within which the light emitting element is situated, an exterior surface, a bottom surface for mounting the lens element, and an interior surface;
an adhesive that surrounds a majority of a perimeter of the light emitting element, but does not completely surround the perimeter of the light emitting element to form a gap in the adhesive, the gap being positioned between an upper surface of the substrate and the bottom surface of the lens element to connect the cavity to an exterior of the lens element, the adhesive being disposed in a plane parallel to a light emitting surface of the light emitting element, the adhesive attaching the bottom surface of the lens element to the upper surface of the substrate; and
a sealing material that is situated within the gap in the adhesive, the sealing material sealing the cavity.