Share this example!

Share this example with your friends on your favorite profile:

You can easily embed this example to your blog or website by copying the following code:

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/example/Adafruit_TSL2561_U/sensorapi" frameborder="0"></iframe>


You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>



  • 2017-10-23 allie.hopkins

    I'm now getting a compile error when trying to verify sample code using this library.

    (library file) Adafruit_Sensor/Adafruit_Sensor.cpp:4:23: error: out-of-line definition of 'constructor' does not match any declaration in 'Adafruit_Sensor'

    Any chance we can get someone to check out this library?

  • 2015-11-20 codebender

    This example was tested on 2016-06-15 and it compiles on Arduino Uno, Arduino Leonardo, Arduino Mega