These sensors have multiple utilities. Starting from line detection to edge detection, these sensors can even be optimized to be used as proximity sensors. Even our smartphones use these sensors. They are usually located near the front speakers. These sensors also work on the principle of sending and receiving signals.