22.02.2021, 11:20
You should also check if the storage value is not a table otherwise the script will produce an error. Corrected version:
Code:
-- Creating database for global variables and initialized to ZERO only first time of script use
HumidDB = storage.get('Humid')
if type(HumidDB) ~= 'table' or next(HumidDB) == nil then