In this study, on the fabrication of a flexible wavelength sensor is reported, which is achieved by growing a layer of lead sulfide (PbS) nanofilm on both sides of a polyethylene terephthalate substrate using the chemical bath deposition method, followed by the deposition of two parallel Au interdigital electrodes. Experimental result shows that the photocurrent ratio of the two photodetectors monotonically decreases with increasing wavelength in the range from 265 nm (UV) to 2000 nm (NIR), indicating that the incident light wavelength can be distinguished by the photocurrent ratio. Notably, the as‐constructed wavelength sensor exhibits superior performance compared to most previously reported filter‐less designs, achieving an average absolute error of 11.5 nm and an average relative error of 1.1%. It is also found that the sensor exhibits excellent mechanical flexibility and environmental stability. Furthermore, by introducing the back‐end circuit, real‐time detection of the wavelength of monochromatic light and the peak wavelength of LED light are achieved, with detection errors not exceeding 2.8% and 2.6%, respectively. It is believed that the flexible PbS nanofilm wavelength sensor prepared in this study has potential application in future portable and flexible optoelectronic devices.