CODE EXPLANATION
•
unknownValue = random(0, 31) Generates a pseudo-random number
•
calibrate() This function calibrates the sensor to the light in
your environment. It does so by calling adjustSentivity() several
times and runs once in the setup() loop.
Need help?
Do you have a question about the Arduino starter kit with Logic Analyzer and is the answer not in the manual?