Lesson goal: Read the light level and plot it in real time


As seen in a previous lesson, we were able to read a temperature and plot it in real-time, on a nice-looking chart. In this lesson, let's do the same, but for the ambient light level.

As you run this lesson, try to change the light level around your circuit (cover the sensor with your handle, turn the room-lights on and off, etc. See the notes below for a science-project-type lesson.

Now you try. Wire up the circuit and run the code given. See if the numbers change as you change the light level around your circuit.

Type your code here:

See your results here: