Beginner starter project for demonstration purposes. Displays the value of the photocell on the LCD. Includes a conditional statement to turn the LED on or off depending upon the value of the photocell.

Photocell

Split voltage circuit

Pin A1

10kΩ Resistor

 

LED

Pin 3

220Ω Resistor

 

LCD Backpack (4 pins)

SCL (Clock) : Pin A5

SDA (Data) : Pin A4

Ground : GND

VCC : 5v