Light grid control