Combining with a lipopolysaccharide and transmitting the signal across the cell membrane to initiate a change in cell activity. Lipopolysaccharides (LPS) are major components of the outer membrane of Gram-negative bacteria, making them prime targets for recognition by the immune system.