Cross-platform sensor library with Blynk

Hey all!

I’ve been working on a cross-platform library which allows you to easily use sensors like accelerometers, gyroscopes, and barometers in your Arduino, ESP8266, Particle and Raspberry Pi projects:

I’ve recently just discovered Blynk, so I figured I’d create an example app using my Sensors library, turned out to be super simple:

Using sensors is as simple as this:

Thermometer *thermometer = Sensors::getThermometer();
if(thermometer) {
    float t = thermometer->getTemperature();
    Blynk.virtualWrite(V0, t);
}

And here’s what it looks like in the Blynk app:

Hopefully this is helpful for anyone out there using i2c sensors with Blynk, let me know if you have any feedback!

- j

3 Likes

Cool! Thanks for contributing! :pray: