function enableSensor() {
  settings = require("Storage").readJSON("coretemp.json", 1) || {};

  if (!settings.enabled) {
    settings.enabled = true;
    require("Storage").write("coretemp.json", settings);

    drawBackground("Waiting for\ndata...");
  }
}
// Background task will activate once settings are enabled.
Background task will activate once settings are enabled.
Background task will activate once settings are enabled .
function enableSensor() {
  settings = require("Storage").readJSON("coretemp.json", 1) || {};
  if (!settings.enabled) {
    settings.enabled = true;
    require("Storage").write("coretemp.json", settings);
    drawBackground("Waiting for\ndata...");
  }
}
function enableSensor ( ) { settings = require ( "Storage" ) . readJSON ( "coretemp.json" , 1 ) || { } ; if ( ! settings . enabled ) { settings . enabled = true ; require ( "Storage" ) . write ( "coretemp.json" , settings ) ; drawBackground ( "Waiting for\ndata..." ) ; } }
Background task will activate once settings are enabled.
Background task will activate once settings are enabled .