For the first part of this exercise, I made a coffee cup that reacts to light. When you remove the cap it illuminates the cup so that you can see inside of it easier. For the future, I want a series of LEDs so you can see the liquid level using lights.
I used the code from the potentiometer example and made it so that two lights corresponded to a photocell that is implanted in the bottom of the cup.
For the second part, making a switch, I built off my previous soccer lamp. I used two pieces of metal embedded inside the soccer ball to allow the LEDs to switch states when the ball is squished together.
There were issues in getting the placement of the materials inside the ball so that it could withstand pressure but also not be so sensitive. The tether of wires makes it kind of clunky as a toy.