*In this exercise we use the rawdata values instead of the lightPercent.*
Using the sensorPortTest.java, we conducted measurements with the rawdata, and got the following results:
| Rawdata measurement | Black | White |
|--------------------- |------- |------- |
| Rawdata | 650 | 400 |
Black lightpercent calculated with formula:
$100*(1-650/1023) = 36,46$
In our measurements with lightPercent, we measured black to be 34, which is quite close.
We found the interval between the measurements of black and white, to have a bigger interval, than the percentages. This could be an advantage when there is a need for higher level of detail, as it provides larger resolution.