Led sensor
From ArmadeusWiki
According to this paper, a simple led can be a light sensor if it used in reverse mode. In fact if led is used in invert, it become a variable capacitance.
To test this phenomena , I used to pin of the FPGA, and design a little component that provide the discharging time in a register.
Code
How that work ?
Results
With a green standard led that give :