prototype controlling LEDs from a sensor or the browser