Maggots are attracted to rotting material, particularly rotting or decaying vegetation or flesh. If garbage is left out in a home, it is not uncommon to find maggots in the garbage within days. They thrive in warm, moist environments, and thus maggot infestations are most common in homes with poor moisture control and high temperatures.
Maggots are the larvae of the adult blow fly. If produce, meat or even fecal matter is left out in the open, the adult flies seize the opportunity to lay their eggs in this warm, moist and nutritious material. Within several days, the eggs hatch into maggots, and several days later, the maggots mature into adult flies.
The best way to keep maggots out of a house is to dispose of all waste promptly outside the home. Any garbage that must be kept in the home must be covered tightly. Litter boxes must also be kept free of feces, which are another favorite laying spot of blow flies. Keeping the temperature cool with air conditioning and using a dehumidifier to reduce moisture levels is also useful. If items infested with maggots are found, removing them from the home immediately helps keep the problem from worsening.