That new carpet smell is from a chemical known as a VOC. Carpets tend to release a low count of VOCs so there’s nothing to worry about. But if you want to get rid of the smell, just keep the room the carpet’s in well ventilated.