User Manual
Sensor Melody Light Robot
21
Adjusting Values in Arduino IDE
You can change how strongly the sensors respond in a program by adjusting their value.
● Light Sensor
This value can be from 0-1023.
Changing the value of "if (analogRead(LIGHT_SENSOR_PIN) < 400" in "loop()" will change
the amount of light it will take for your robot to play a song. Changing the less than sign
to a greater than sign will make your robot play songs when it's light rather than dark.