You should always consult a doctor before resorting to sleeping pills over the counter. Any type of medicine should be consumed only under medical surveillance. One of the most important ingredient used in the over the counter sleeping pills is called antihistamine. This element causes drowsiness and encourages the person to fall sleep after imbibing the medicine.