How to read an LDR sensor with a Raspberry Pi using MCP3008.