Dorian Mcintyre shared this video on Youtube!
An LED (Light Emitting Diode) is used as both a sensor and light Source with an Arduino Uno as the controller. The circuit also emits sound when the LED detects light. Can’t include the code here because the less-than symbol is not allowed in a description. The code is in my first comment which allows the “dangerous” Less-Than symbol.