Data Sheet

UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
103 www.uctronics.com
With the increase of the light intensity, the resistance of photoresistor will be decreased. The
voltage of GPIO port in the above figure will become high.
8.17.4 Procedures
1. Build the circuit
2. Program
Python user:
2.1 Edit and save the code with vim or nano.
(https://github.com/UCTRONICS/Arducam_Starter_Kit_Python_Code_for_RPi.git)
2.2 Run the program
$ sudo python 17_photoresistor.py
Now, when you try to block the light towards the photoresistor, you will find that the value
displayed in the screen will be reduced. Otherwise, when you use a powerful light to irradiate
the photoresistor, the value displayed will be increased.