# balenaSense v2: Updated temperature, pressure, and humidity monitoring for Raspberry Pi

**URL:** <https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922>\
**Category:** Discussions\
**Created:** [July 20, 2021, 11:42pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922 "2021-07-20T23:42:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewnhem](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/andrewnhem/32/4284_2.png) [@andrewnhem](https://forums.balena.io/u/andrewnhem)\
**Post date:** [July 20, 2021, 11:42pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/1 "2021-07-20T23:42:10Z")

</div>

Please use the thread below to discuss the related blog post:

> **[balenaSense v2: Temperature, pressure, and humidity monitoring for Raspberry Pi](https://www.balena.io/blog/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/)**
>
> We updated balenaSense to v2, featuring less code by including balenaBlocks. Measure and monitor your environment, store and visualize your data.

---

<div class="post-metadata">

**Author:** ![emassera](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@emassera](https://forums.balena.io/u/emassera)\
**Post date:** [January 25, 2022, 2:48pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/2 "2022-01-25T14:48:51Z")

</div>

Can i Use a Raspberry pi 0?

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [January 26, 2022, 4:44pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/3 "2022-01-26T16:44:10Z")

</div>

The Pi Zero is not supported by InfluxDB so balenaSense won’t run on the Zero. However, you can use our “Simple Sensor” project ([GitHub - balena-io-playground/simple-sensor: Read sensor data and send via MQTT](https://github.com/balena-io-playground/simple-sensor)) on a Pi Zero and send its data to balenaSense or any other project using MQTT.

---

<div class="post-metadata">

**Author:** ![cjlfilm](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cjlfilm/32/7546_2.png) [@cjlfilm](https://forums.balena.io/u/cjlfilm)\
**Post date:** [March 2, 2022, 9:47pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/4 "2022-03-02T21:47:38Z")

</div>

I have two sensors connected. VEML6070 and BME680.  
The VEML6070 sensor is not working for me. Getting an error:  
022-03-02T21:43:00Z E! [inputs.http] Error in plugin: [url=http://sensor:7575]: Get “[http://sensor:7575](http://sensor:7575)”: dial tcp 172.17.0.4:7575: connect: connection refused  
The BME680 is working fine.

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 6, 2022, 7:39pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/5 "2022-03-06T19:39:21Z")

</div>

Hello @cjlfilm I attached the same sensors to a new instance of balenaSense but was not able to reproduce that error. Can you tell me a bit more about your setup, such as the device type and version of balenaOS you’re using?

---

<div class="post-metadata">

**Author:** ![AlphaFab](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@AlphaFab](https://forums.balena.io/u/AlphaFab)\
**Post date:** [March 24, 2022, 2:07am UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/7 "2022-03-24T02:07:50Z")

</div>

Do you know if this will work with the Adafruit MCP9600 I2C Thermocouple Amplifier? I have some on order, but thought I would ask before receiving them, because I’m impatient it seems. 🙂 I need a higher temp range (up to 850\*F) with a 5-meter Type-K thermocouple (6 of them, actually), which is why I’m going to try the MCP9600.

Thanks!

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 25, 2022, 5:04am UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/9 "2022-03-25T05:04:50Z")

</div>

I don’t see an iio driver for the MCP9600 available here: [Kconfig « temperature « iio « drivers - kernel/git/stable/linux.git - Linux kernel stable tree](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/iio/temperature/Kconfig) which is the first step in determining if it works with the sensor block. (If it was there, the next step would be to see if it was included in balenaOS) However, even though it does not work with this block, you could easily install the Adafruit module in a container with pip3, following the instructions here: [GitHub - adafruit/Adafruit\_CircuitPython\_MCP9600: CircuitPython driver for the MCP9600 thermocouple I2C amplifier.](https://github.com/adafruit/Adafruit_CircuitPython_MCP9600#dependencies) and using the simple Python example on the same page.

---

<div class="post-metadata">

**Author:** ![AlphaFab](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@AlphaFab](https://forums.balena.io/u/AlphaFab)\
**Post date:** [March 27, 2022, 4:41am UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/11 "2022-03-27T04:41:02Z")

</div>

I’ll go take a look at the code there - thanks for the info!

---

<div class="post-metadata">

**Author:** ![cjlfilm](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cjlfilm/32/7546_2.png) [@cjlfilm](https://forums.balena.io/u/cjlfilm)\
**Post date:** [April 3, 2022, 7:07pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/13 "2022-04-03T19:07:22Z")

</div>

I used balenaOS 2.82.10+rev1 with VELM6070 and BME680 in parallel. Should be fine. In the mean time, the BME680 has failed. The sensor is not at all suited for outdoor use, due to condensation. Sensor was installed inside a stevenson screen. Is there any sensor available, suited for outdoor (north-west europe) use? Or maybe a way to protect the sensor from condensation inside the sensor cavity, without interfering with results?

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [April 7, 2022, 4:26pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/14 "2022-04-07T16:26:07Z")

</div>

Hello @cjlfilm you could try a thermocouple which is pretty rugged against moisture, but it will only provide temperature readings. Adafruit mentions that the SCD-40 is suited for outdoor use but it costs a bit more for the CO2 functionality, although you also get temperature and humidity readings. I’ve been using an SCD-30 outdoors in a small stevenson screen for about four months in the Northeast US harsh winter/ wet spring with no problems, although it’s protected a bit under a roof overhang. I can’t guarantee you’ll get the same results though! Note that none of these are currently supported by the sensor block, so you’d have to install their respective drivers in a container.

---

<div class="post-metadata">

**Author:** ![cjlfilm](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cjlfilm/32/7546_2.png) [@cjlfilm](https://forums.balena.io/u/cjlfilm)\
**Post date:** [April 7, 2022, 7:37pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/16 "2022-04-07T19:37:57Z")

</div>

If you could provide instructions on how to install the drivers, that would be great. Will CO2 show up in balena sense?

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [April 12, 2022, 4:45pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/17 "2022-04-12T16:45:22Z")

</div>

You can take a look at our Air Quality device project for an example of how to install the drivers for a sensor in a container: [balena-iaq/iaq at master · balena-io-playground/balena-iaq · GitHub](https://github.com/balena-io-playground/balena-iaq/tree/master/iaq)  
BalenaSense itself will not show CO2 because none of the supported sensors have CO2. However, since balenaSense is built with blocks, you can copy most of the services it uses and just replace the sensor block in a manner similar to the project mentioned above. For more details about the “building blocks” of balenaSense see this post: [balenaBlocks in-depth: Sensor and Pulse](https://www.balena.io/blog/balenablocks-in-depth-sensor-and-pulse/)  
Hopefully this will be enough information to get you started but please reach back out if you get stuck!

---

<div class="post-metadata">

**Author:** ![twingall1](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@twingall1](https://forums.balena.io/u/twingall1)\
**Post date:** [June 7, 2022, 6:17pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/19 "2022-06-07T18:17:58Z")

</div>

Hi, using Rpi 3b+  
balenaOS 2.98.33  
supervisor: 13.1.11  
current release/target release: 13.1.11

All working well except for Grafana Telegram notifications. Seems to be a certificate issue with Balena.  
When i click ‘test notification’ on grafana; I get this error msg in Balena Cloud log:

dashboard INFO[06-07|18:14:23] Sending telegram notification logger=alerting.notifier.telegram chat\_id=-1730411451 bot\_token=[–My\_bot\_API–] apiAction=sendMessage  
dashboard EROR[06-07|18:14:23] Failed to send webhook logger=alerting.notifier.telegram error=“Post “[https://api.telegram.org/bot[--My\_bot\_API--]/sendMessage](https://api.telegram.org/bot%5B--My_bot_API--%5D/sendMessage)”: x509: certificate signed by unknown authority” webhook=HumidityAlerts

Any tips would be much appreciated,  
Thanks

---

<div class="post-metadata">

**Author:** ![Matt36er](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@Matt36er](https://forums.balena.io/u/Matt36er)\
**Post date:** [December 5, 2022, 9:07pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/20 "2022-12-05T21:07:18Z")

</div>

Adding the BALENASENSE\_TEMP\_OFFSET variable doesn’t appear to be working for me when I add it to the device. I have tried all the services in the dropdown. Can anyone confirm if their offset variables work?

 ![Screenshot 2022-12-05 at 21.05.52](https://global.discourse-cdn.com/balena/original/2X/7/7d21dbba95fff0558ac09522373042b4401c99de.png)

---

<div class="post-metadata">

**Author:** ![rcarteraz](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rcarteraz](https://forums.balena.io/u/rcarteraz)\
**Post date:** [December 15, 2022, 4:01pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/21 "2022-12-15T16:01:10Z")

</div>

Can this be used without BalenaOS or the cloud stuff? I have an existing docker stack and I’m just looking to add the ability collect environment stats using the BME680 and would prefer to not make radical changes to the setup and keep it entirely local.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [December 16, 2022, 9:55am UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/22 "2022-12-16T09:55:18Z")

</div>

Hello @rcarteraz welcome to the balena community!

Yes! that might work using the Docker stack on a Linux device. Try it and let us know if works!

---

<div class="post-metadata">

**Author:** ![rcarteraz](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rcarteraz](https://forums.balena.io/u/rcarteraz)\
**Post date:** [December 18, 2022, 9:24pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/23 "2022-12-18T21:24:00Z")

</div>

Thanks, will do. I’ve gone ahead and installed it a on separate rpi for now so I could experiment with Balenacloud. It’s a pretty cool piece of software.

---

<div class="post-metadata">

**Author:** ![rcarteraz](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rcarteraz](https://forums.balena.io/u/rcarteraz)\
**Post date:** [December 18, 2022, 9:27pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/24 "2022-12-18T21:27:58Z")

</div>

Is there a way to convert the VOC readings into an AQI reading instead? That would be better.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [December 19, 2022, 1:09pm UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/25 "2022-12-19T13:09:28Z")

</div>

@rcarteraz what do you recommend?

---

<div class="post-metadata">

**Author:** ![rcarteraz](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rcarteraz](https://forums.balena.io/u/rcarteraz)\
**Post date:** [December 20, 2022, 5:50am UTC](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922/26 "2022-12-20T05:50:31Z")

</div>

I don’t have a recommendation, I was asking if there was a way to do that as it would be a better visual representation than a resistance value. The vast majority of folks don’t know what a resistance value is, let alone how to interpret it.

[Next page](https://forums.balena.io/t/balenasense-v2-updated-temperature-pressure-and-humidity-monitoring-for-raspberry-pi/339922.md?page=2)
