top of page
Read Light Value Code

​int lightValue;

void setup() {
Serial.begin(9600);
// open serial monitor port
}

void loop() {
int lightValue = analogRead(A0);  
// reads light intensity
Serial.println(lightValue);  // prints value to the serial monitor
delay(10);   // delay in between reads for stability
}

Igniting Innovation through Functional Prototyping and Physical Computing

Contact Information

odysseyboardedu.@gmail.com
Phone: (360) 303-5526
24338 Lee Road
Mount Vernon, WA 98274

Contact Us

Thanks for submitting!

© 2017 by Odyssey Board. All rights reserved.

bottom of page