5,710
edits
Changes
→photoresistor
* Q: Using methods you invented above, verify your data readings.
* Q: How could you make this more sensitive? There are least three ways to try... think in terms of the physical enclosure, the hardware setup (a voltage divider), and the software (look at File->Sketchbook->Analog->Calibration...)
* Q: Would changing the delay in the code make it more sensitive?
<code>
val = analogRead(potPin); // read the value from the sensor