Photosensor array gesture detection techniques are described. The declarative system has several functional features, which may be selected and instantiated by a end user by providing a set of specifications to a end-user interface. The light source is enclosed within the housing and projects light through the opening and onto a target.