There are always wires that goes into the arduino board, 1 to the 5v pin, 1 in the ground pin and another in an analog pin.
Analog provide us with numbers that sensor is giving us. It takes different readings from light to dark.
All the colours are numbered between (0-1024)
Dark = 0
Grey = 128
White = 255
No comments:
Post a Comment