Lightcurtains and area sensors