Possible hiding places include:
Forgotten food spills
Pet food
Compost
Dead insects
Animal remains
Outdoor garbage
Food waste underneath appliances
Organic debris around drains
Another nearby garbage container
If you have a persistent fly infestation inside your home, professional pest-control advice may be appropriate.
Are Maggots Dangerous?
Maggots themselves are not usually considered a major household danger simply because they’re present in garbage, but the conditions that produce them—decomposing food and waste—can involve bacteria and unpleasant odors.
Treat the waste as contaminated material, wear gloves when cleaning, wash your hands