Objective
In this project, we will use Raspberry Pi to get light strength data with photoresistor . As raspberry pi can not handle analog input, we need an A/D adapter to convert analog voltage into digital signal. You can select either MCP3008 ,MCP3204 or MCP3208 module as A/D adapter. In our experiment, we selected MCP3208.
Parts and Devices
| Devices | qty | 
| Raspberry pi2/3 | 1 | 
| 8GB MicroSD memory card preinstalled Raspbian OS. | 1 | 
| GPIO breakout kit(optional) | 1 | 
| A/D adapter | 1 | 
| photoresistor | 1 | 
| 10K ohm resistor | 1 | 
| breadboard | 1 | 
| jumper wires | some | 
Circuit Connection Graph(MCP3208 or MCP3008):

MCP3208 and MCP3008 are very similar, the datasheet of these two modules are sa following:
MCP3008 datasheet:https://osoyoo.com/driver/MCP3008_datasheet.pdf
MCP3204/MCP3208 datasheet:https://osoyoo.com/wp-content/uploads/2016/10/MCP3208_datasheet.pdf
Circuit Connection Graph(MCP3204):

Install software:
1.  connect your Pi to internet and then install GIT with following terminal command:  
sudo apt-get install git-core
DownLoad Url osoyoo.com