Sensors are one of the technologies to drive the rapid development of the IoT and Industry 4.0. Optoelectronic sensors have attracted much attention, especially in the current “new infrastructure” strategy with the strong support of its development.