An arduino sketch to control a simple Lucid Dreaming Mask with a CNY70 distance sensor and a LED
- Here is the datasheet of the sensor that we used: http://www.vishay.com/docs/83751/cny70.pdf
- This is how we wired up the sensor: https://2.bp.blogspot.com/-DgKjxBA_j5s/Tk5kDuqXU5I/AAAAAAAAA5Q/U7fgmawtphQ/s1600/CNY70.jpeg The output there goes to Analog PIN 0.