Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
VAR temp;
PROC readTemp() {
temp = TEMP_SENSOR();
PRINT("Current Temp: ", temp);
IF temp > 30 THEN PRINT("Warning: High Temperature!");
}
// Simulate readings
readTemp();
readTemp();Coding works best on desktop or with an external keyboard.