setInterval(function() {
      var val = bot.sensor.analogRead().fromScale(0, 1024).toScale(0, 255) | 0;
      console.log("brightness: ", val);
      bot.led.brightness(val);
    }, 50);