An optical sensor includes at least one pair of a light source and a photodetector, the light source and the photodetector facing each other and having an opening between the light source and the photodetector; and a base substrate disposed on or below the at least one pair of the light source and the photodetector, the base substrate including a contact sensor positioned in an area corresponding to the opening.