The invention provides a photoelectric sensor with a plurality of optical axes which has width of a corresponding dangerous area and a diameter of a minimal detecting object and can flexibly change the length of a cylinder for light projection and receiving, the number of optical shafts, the distance between optical shafts, etc. A light projection and receiving device series comprises an optical module series, a common conducting wire and a conducting wire between adjacent modules, wherein, the optical module series only consists of a plurality of optical modules which are arranged into a row, the optical module consists of an optical system of an optical shaft 1, a light projection circuit of the optical shaft 1 and a primary trigger corresponding to a shift register which are connected into an integral body, the common conducting wire is corporately connected with a module for light projection from one end to the other end of a module series for light projection, the conducting wire between adjacent modules is only connected with an adjacent module for light projection, each optical module forming the optical module series is respectively connected with a belt-shaped cable; therefore, the conducting wire between adjacent modules is used to connect the trigger inside the adjacent optical module subordinatively to form the shift register. Therefore, the ordinal operation of each optical module of the optical module series is formed according to the data sent by the shift register in sequence.