An optical device includes a base of ring shape, and a light emitting/receiving element and a transparent plate both attached to the base. A side face of the opening of the base is formed to have a taper serving as a draft for a molding resin. A side surface of the transparent plate is formed to have a taper widened upwardly and corresponding to the draft. These side face and surface engage each other with an adhesive layer interposed therebetween. A hologram may be mounted instead of the transparent plate.