You should avoid adding oils, dairy, and meat to a compost bin. These types of food have a complex structure and take a while to break down. They are also a magnet to rodents, maggots, and other pests. When these materials fail to break down properly, they can spread unwanted bacteria in your compost, causing potential damage to your plants.
Citrus fruits are also another food group that should not be added to a compost bin due to their harmful effects on beneficial bacteria. The beneficial microorganisms cannot stand the acidity from the lemon and other acidic foods. So adding lemon peels will do more harm than good. Better use the peels of lemon in scrubbing the surfaces of your house,