RaspberryPi3, Python and Circuits 2

Use your RaspberryPi 3 with the excellent electronics kit from Amazon

The second circuit to complete is this Light Dependent Resistor (photoresistor) circuit:


As with the traffic light circuit, you will need the Python3 code below.

Think about the threshold that you will need for defining when “daytime” has begun.

What else could you adapt this circuit to do?