This sensor is able to read light amplitude. The potentiometer can change the photo-resistance sensibility.
In this experiment, we managed to connect infrared LEDs to the ATTINY. The other one ( infrared receptor seem like LED) is used for read rebounding object light form a infrared led, acting as a simple proximity sensor. ( 3 feets ...)
___________________________[ Avr Code ]__________________________
In this circuit, a piezzo reader directly records the sounds coming from the piezzo mic. The capacitor acts as a amplitude buffer to let the time for the ATTINY to read it (so this is not high definition audio).