Closed jameshughes89 closed 3 years ago
This portion of the code is meant to spend the first 5 seconds after boot-up to attempt to calibrate the sensor with finger movements. Since I'm using a photoresistor with constantly changing values every cycle it would be extremely unlikely for these values to be equal for more than a single cycle.
An exception case could be used, but I'm not sure if it would provide any value to the calibration function.
WIthout knowing the details of what this is supposed to do, there is a potential area to look in #6 within "Project06.ino":
What should happen if
SensorValue == SensorHigh
? Maybe it should be doing nothing, but I thought I would point it out either way.