Sound with light

To adjust the autofocus of their cameras, many modern smartphones use optical proximity sensors – tiny little devices that use light to detect objects that are near them. However, these sensors can also be employed for a multitude of other applications.

Challenge:

Create a system that uses the information coming from eight optical proximity sensors and converts them into musical tones. Each sensor will be assigned a different tone, so in the end, you will be able to make music with light.