The series of events in which a lipopolysaccharide stimulus is received by a cell and converted into a molecular signal. Lipopolysaccharide is a major component of the cell wall of gram-negative bacteria.