top of page

Tryout - Light Sensor

Here is a second demonstration of logic gates using a NOT operand with the help of the light sensor. As the programming code suggests, if the light sensors detects light intensity under 500 units, then the if-else statement holds true. Thereby playing the note D8. Otherwise, it plays the note A6.

Programme Code
bottom of page