40
5.3. Light Sensors
You can use a Light Sensor to measure the amount of light in the area.
5.3.1. Connecting a Light Sensor
5.3.2. Port Settings
Before programming, you'll need to set the ports in the Block Programming Environment to match the parts
connected to your Studuino. Select Edit from the menu and choose Port Settings to open the Port Settings
dialog box. Check A6 under Sensor/LED/Buzzer and choose Light Sensor. You’ll also need to check A4
and choose LED.
Check and choose
Light Sensor
Check and choose
LED
A4
A6
LED
Light Sensor
Gray
Black
Black
Keep an eye on your cables!
The gray wire should be at the top.