Рабочий код
local cfg_state_pin1
local cfg_state_pin2
if (file.open('stpin1') == true) then
cfg_state_pin1 = string.gsub(file.readline(), "\n", "");
file.close();
print (1)
print (cfg_state_pin1)
if (cfg_state_pin1 == ('ON')) then gpio.write(out1, gpio.HIGH)...