I am currently making a laser speed trap to measure egg race contraptions at my school.
Using laser diode with photodiode sensors on inputs 2 and 3.
All is working well, but I would like to write into the code a visual (LED) sign that the sensor are each aligned. And more importantly when they become misaligned.
I have tried to write in if digital read etc at the beginning of the loop, but it either does not compile the LED remains on even if I move the sensor out of alignment.
Any help gratefully received.
CHRONO_sketch_from_Arduino_site.ino (1.27 KB)