Your kids need to learn how to clean up after themselves.

All you need is a camera pointing at the floor with image detection... when there's legos on the floor it triggers a video playing that explains how the kids need to pick up the legos. /s

Actually, a camera that scores the clean up progress, together with some virtual gold coins and real loot boxes for a week of good compliance might really do the trick.