updated
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
local max = 300
|
||||
local min = 250
|
||||
local min = 275
|
||||
|
||||
|
||||
local function getValue()
|
||||
@@ -10,8 +10,8 @@ end
|
||||
|
||||
local function checkTemperature()
|
||||
local temperature = getValue()
|
||||
local upperThreshold = max - 5
|
||||
local lowerThreshold = min + 5
|
||||
local upperThreshold = max - 1
|
||||
local lowerThreshold = min + 1
|
||||
|
||||
if temperature >= upperThreshold then
|
||||
print("Warning: Temperature approaching upper limit! Taking action.")
|
||||
|
||||
Reference in New Issue
Block a user