Safety light curtains and light grids