#!/usr/bin/lua local sensors = require "sensors" local config, err = sensors.read_config('/etc/sensors.json') if not config then error(err) end local num_sensors, err = sensors.setup(config) if num_sensors == nil then error(err) end print(string.format("successfully initialized %d sensor(s)", num_sensors))