Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

Sensor Data Collection and Analytics – From IoT to Cloud in 5 Minutes

3 min read

The BME680 is a digital 4-in-1 sensor with gas, humidity, pressure, and temperature measurement based on proven sensing principles. The state-of-the-art BME680 breakout lets you measure temperature, pressure, humidity, and indoor air quality, and is Raspberry Pi and Arduino-compatible!

The sensor module is housed in an extremely compact metal-lid LGA package with a footprint of only 3.0 × 3.0 mm² with a maximum height of 1.00 mm (0.93 ± 0.07 mm). Its small dimensions and its low power consumption enable the integration in battery-powered or frequency-coupled devices, such as handsets or wearables.

Typical applications

You can use this breakout to monitor every aspect of your indoor environment. Its gas resistance readings will react to changes in volatile organic compounds and can be combined with humidity readings to give a measure of indoor air quality. Here are the list of typical applications:

– Indoor air quality
– Home automation and control
– Internet of things
– Weather forecast
– GPS enhancement (e.g. time-to-first-fix improvement, dead reckoning, slope detection)
– Indoor navigation (change of floor detection, elevator detection)
– Outdoor navigation, leisure and sports applications
– Vertical velocity indication (rise/sink speed)


  • Measuring temperature, pressure, humidity, air quality sensor
  • I2C interface, with address select via ADDR solder bridge (0x76 or 0x77)
  • 3.3V or 5V compatible
  • Reverse polarity protection
  • Raspberry Pi-compatible pinout (pins 1, 3, 5, 7, 9)
  • Compatible with all models of Raspberry Pi, and Arduino
  • Python library
  • Datasheet

Let us see how to fetch sensor data from BME680 on the NVIDIA Jetson Nano board and send it to the Cloud Platform.

Hardware requirements:

  • Jetson Nano: 2GB Model ($59)
  • A 5V 4Amp charger
  • 128GB SD card
  • BME680 sensors

Software requirements:

  • Jetson SD card image from NVIDIA
  • Etcher software installed on your system

You can run RedisTimeSeries directly over an IoT Edge device. Follow the below steps to build RedisTimeSeries Docker Image over Jetson Nano:

Verifying Docker version

SSH to your Jetson Nano board equipped with BME680 sensor and install Docker

pico@pico1:~$ docker version
Client: Docker Engine - Community
 Version:           20.10.3
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        48d30b5
 Built:             Fri Jan 29 14:33:34 2021
 OS/Arch:           linux/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
  Version:          20.10.6
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       8728dd2
  Built:            Fri Apr  9 22:43:42 2021
  OS/Arch:          linux/arm64
  Experimental:     false
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
  Version:          0.19.0
  GitCommit:        de40ad0

Verifying if Sensor is detected

i2cdetect -r -y 1
    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- --

Building Docker Image for RedisTimeSeries for Jetson Nano

git clone --recursive https://github.com/RedisTimeSeries/RedisTimeSeries.git
cd RedisTimeSeries.git
docker build -t ajeetraina/redistimeseries-jetson . -f Dockerfile.jetson.edge

Running RedisTimeSeries

docker run -dit -p 6379:6379 ajeetraina/redistimeseries-jetson

Verifying if RedisTimeSeries Module is loaded

redis-cli> info modules
# Modules

Clone the repository

$ git clone https://github.com/redis-developer/redis-datasets
$ cd redis-datasets/redistimeseries/realtime-sensor-jetson

Running Sensorload Script

sudo python3 sensorloader2.py --host localhost --port 6379

Running Grafana on Jetson Nano

docker run -d -e "GF_INSTALL_PLUGINS=redis-app" -p 3000:3000 grafana/grafana

There you go..

Point your browser to https://:3000. Use “admin” as username and password to log in to the Grafana dashboard.


Click the Data Sources option on the left side of the Grafana dashboard to add a data source.


Under the Add data source option, search for Redis and the Redis data source will appear as shown below:


Supply the name, Redis Enterprise Cloud database endpoint, and password, then click Save & Test.

Click Dashboards to import Redis and Redis Streaming. Click Import for both these options.


Click on Redis to see a fancy Grafana dashboard that shows the Redis database information:


Finally, let’s create a sensor dashboard that shows temperature, pressure, and humidity. To start with temperature, first click on + on the left navigation window. Under Create option, Select Dashboard and click on the Add new panel button.


A new window will open showing the Query section. Select SensorT from the drop-down menu, choose RedisTimeSeries as type, TS.GET as command and ts”temperature as key.


Choose TS.GET as a command.


Type ts”temperature as the key.


Click Run followed by Save, as shown below:


Now you can save the dashboard by your preferred name:


Click Save. This will open up a sensor dashboard. You can click on Panel Title and select Edit.


Type Temperature and choose Gauge under Visualization.


Click Apply and you should be able to see the temperature dashboard as shown here:


Follow the same process for pressure (ts:pressure) and humidity (ts:humidity), and add them to the dashboard. You should be able to see the complete dashboard readings for temperature, humidity, and pressure. Looks amazing. Isn’t it?


Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

54 Replies to “Sensor Data Collection and Analytics – From IoT to…”

  1. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your weblog? My blog is in the exact same area of interest as yours and my visitors would certainly benefit from some of the information you provide here. Please let me know if this okay with you. Thanks!

  2. Hi there! This post could not be written any better! Reading through this post reminds me of my good old room mate! He always kept chatting about this. I will forward this write-up to him. Pretty sure he will have a good read. Many thanks for sharing!

  3. Whats Taking place i am new to this, I stumbled upon this I’ve discovered It positively useful and it has aided me out loads. I’m hoping to contribute & aid other customers like its aided me. Good job.

  4. Fascinating blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Thanks

  5. I would like to thank you for the efforts you have put in writing this web site. I’m hoping the same high-grade blog post from you in the upcoming as well. Actually your creative writing skills has inspired me to get my own website now. Actually the blogging is spreading its wings quickly. Your write up is a great example of it.

  6. Hi , I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people.

  7. Hmm it looks like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but I’m still new to everything. Do you have any points for rookie blog writers? I’d really appreciate it.

  8. After study a couple of of the weblog posts in your website now, and I truly like your method of blogging. I bookmarked it to my bookmark web site list and will probably be checking back soon. Pls take a look at my website as properly and let me know what you think.

  9. I haven’t checked in here for some time as I thought it was getting boring, but the last several posts are great quality so I guess I’ll add you back to my daily bloglist. You deserve it my friend 🙂

  10. I’m not sure why but this website is loading very slow for me. Is anyone else having this issue or is it a problem on my end? I’ll check back later and see if the problem still exists.

  11. I was very happy to find this net-site.I wanted to thanks in your time for this excellent read!! I definitely enjoying every little bit of it and I’ve you bookmarked to check out new stuff you weblog post.

  12. I enjoy you because of all of the effort on this blog. My mother delights in participating in internet research and it’s easy to understand why. Almost all know all relating to the compelling way you provide efficient tips and tricks on the web blog and in addition invigorate participation from other ones on the issue then our favorite simple princess is really starting to learn a lot of things. Enjoy the remaining portion of the year. You’re conducting a wonderful job.

  13. What i do not understood is in fact how you are no longer actually a lot more well-preferred than you might be right now. You’re very intelligent. You know thus considerably relating to this matter, produced me for my part imagine it from numerous various angles. Its like women and men don’t seem to be involved until it?¦s something to accomplish with Lady gaga! Your personal stuffs excellent. Always deal with it up!

  14. I have been browsing online greater than 3 hours as of late, but I never found any interesting article like yours. It’s pretty value enough for me. Personally, if all web owners and bloggers made good content material as you did, the net might be much more useful than ever before.

  15. I’ve been exploring for a little for any high-quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this site. Reading this info So i’m happy to convey that I have an incredibly good uncanny feeling I discovered just what I needed. I most certainly will make sure to don’t forget this site and give it a glance on a constant basis.

  16. I wish to show my love for your kind-heartedness giving support to women who absolutely need guidance on this one subject. Your very own dedication to getting the message all through was exceedingly informative and has continually encouraged somebody like me to reach their aims. Your own warm and helpful instruction entails much to me and even more to my office workers. Thanks a lot; from each one of us.

  17. Thanks for the sensible critique. Me & my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more clear from this post. I am very glad to see such excellent information being shared freely out there.

  18. I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all site owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.

  19. I do agree with all the ideas you have presented in your post. They are really convincing and will certainly work. Still, the posts are too short for newbies. Could you please extend them a little from next time? Thanks for the post.

  20. Does your website have a contact page? I’m having a tough time locating it but, I’d like to send you an email. I’ve got some creative ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it improve over time.

  21. Büyük memeli sarışın bebek büyük beyaz yarrak anal!
    Ya ne dalgası gel al işte demez mi. Selimin elleri de göğüslerimi kavramış.
    Aslında agızasokma niyetli değillerdi. Derken youtube erotik leziz bir fikir kürt escort kızı ben 22 yaşında atletik fiziği olan 1.

  22. Thanks for your article. I would also love to opinion that the first thing you will need to do is to see if you really need fixing credit. To do that you need to get your hands on a replica of your credit score. That should never be difficult, since the government makes it necessary that you are allowed to get one totally free copy of your real credit report each year. You just have to request the right men and women. You can either check out the website for that Federal Trade Commission or maybe contact one of the leading credit agencies instantly.

  23. Howdy very cool blog!! Guy .. Beautiful .. Amazing .. I will bookmark your web site and take the feeds also?KI’m happy to seek out numerous helpful info right here in the publish, we need develop extra techniques in this regard, thanks for sharing. . . . . .

  24. I simply couldn’t depart your site before suggesting that I actually loved the usual info an individual supply for your guests? Is gonna be again ceaselessly to check up on new posts

Leave a Reply

Your email address will not be published.

© Copyright Collabnix Inc

Built for Collabnix Community, by Community