Mode:
Duration:
1
2
3
4
5
6
7
8
9
VAR distance;
PROC checkDistance() {
distance = DISTANCE_SENSOR();
IF distance < 10 THEN PRINT("Alert: Object too close!");
PRINT("Distance: ", distance);
}
checkDistance();
checkDistance();Coding works best on desktop or with an external keyboard.