Figure 7. Configuration using optical sensor.