While I've previously used buttons, speakers, and LEDs - it was helpful to understand how they all work. Especially capacitance. Below we made the angle detector using capacitance, and I used a light sensor.
The closer the capacitive sensors, the higher the voltage. The graph makes sense because there is a furthest angle with a lowest voltage.
I sensed light and when it was dark, the buzzer beeped. This was not super accurate and did not have a consistent linear relationship, in fact I would describe it as more binary - being either light or dark and the values reflecting such.