Optical sensor

[2] An optical sensoris a device that detects and converts light intensity into electric signals, operating not only via visible light but also invisible light (e.g., near-infrared rays, which can't be perceived by human eyes). They're used factory automation, security systems, automatic doors, and screen brightness adjustment in smartphones.