Using a Photoresistor to Detect Light on the Raspberry Pi

In this lesson we show how to detect light levels with a Raspberry Pi and a photoresistor. The photoresistor is connected in a voltage divider to the ADC0834 AD converter, which then connects to the Raspberry Pi. The schematic of the circuit is below:

This schematic shows how to connect a photoresistor to the Raspberry Pi