Mode:
Duration:
1
2
3
4
5
6
7
8
9
VAR lightLevel;
PROC monitorLight() {
lightLevel = LIGHT_SENSOR();
IF lightLevel < 50 THEN LED_ON(); ELSE LED_OFF();
PRINT("Light Level: ", lightLevel);
}
monitorLight();
monitorLight();Coding works best on desktop or with an external keyboard.