The invention relates to a cloth boundary recognition method for a sewing machine and a sensor and an identification device thereof, and belongs to the technical field of intelligent automatic sewingrobot control. A red light LDE light source is converted into a linear light source through a multiple layers of lens, the linear light source is reflected by a reflector to a lens group to be concentrated to form a point-distance linear beam, the point-distance linear beam is irradiated on a linear CCD sensor to form analog voltage output of a dot array, and the cloth boundary recognition sensoris constituted. The analog voltage of the dot array outputted by the cloth boundary recognition sensor is directly sent to an AD port of a MCU for calculation processing, and a digital quantity is transmitted outward through a communication circuit to constitute the cloth boundary identification device of the sewing machine. The cloth boundary recognition sensor adopts a linear CCD photosensitivechip, and the recognition precision is greatly improved; the MCU directly receives an analog voltage value, and the digital quantity is transmitted outward through the communication circuit after thecalculation processing, thereby avoiding interference on an analog signal transmitting over a long distance, and improving the stability of the cloth boundary identification sensor.