This commit is contained in:
2025-06-14 18:21:55 -04:00
parent cfbefc31b1
commit ea1365c719
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
local max = 15 local max = 15
local init = 3 local init = 3
local rateStep = 0.10 local rateStep = 0.01
local min = 1 local min = 1
local function getValue() local function getValue()

View File

@@ -10,8 +10,8 @@ end
local function checkTemperature() local function checkTemperature()
local temperature = getValue() local temperature = getValue()
local upperThreshold = max - 20 local upperThreshold = max - 5
local lowerThreshold = min + 20 local lowerThreshold = min + 5
if temperature >= upperThreshold then if temperature >= upperThreshold then
print("Warning: Temperature approaching upper limit! Taking action.") print("Warning: Temperature approaching upper limit! Taking action.")