# Bme680 node producing no data

**URL:** https://discourse.nodered.org/t/bme680-node-producing-no-data/96384
**Category:** General
**Created:** [2 April 2025 19:30 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384 "2025-04-02T19:30:21Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [2 April 2025 19:30 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/1 "2025-04-02T19:30:21Z")

</div>

I've been using the node-red-contrib-bme680-rpi node happily for some time now.

I installed it on a new raspberry pi image and can't get it to generate any data. I see this error in the Node-RED logs:

```auto
2 Apr 13:16:53 - [error] [bme680rpi:7ee6176abf806608] TypeError: Bme680 is not a constructor

```

This is in Node-RED v4.0.9

Any ideas?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [2 April 2025 19:56 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/2 "2025-04-02T19:56:27Z")

</div>

How did you install node red?

Post the node red startup log please.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [2 April 2025 20:03 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/3 "2025-04-02T20:03:23Z")

</div>

What version of node-red were you using?  
What OS version did you install on the new image and what version did you previously use?  
There have been changes in the pi software and the node hasn’t been updated in 4 years. It may be that the node will not work with the new PI release.

You can open an issue on GitHub and see if the author will respond.

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [2 April 2025 20:13 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/4 "2025-04-02T20:13:33Z")

</div>

I installed it via the Node-RED supplied script for Raspberry Pi OS.

```auto
Welcome to Node-RED
===================
2 Apr 14:09:29 - [info] Node-RED version: v4.0.9
2 Apr 14:09:29 - [info] Node.js version: v20.19.0
2 Apr 14:09:29 - [info] Linux 6.12.20+rpt-rpi-v8 arm64 LE
2 Apr 14:09:30 - [info] Loading palette nodes
This module is deprecated. Plase use another dependency
2 Apr 14:09:32 - [info] Settings file : /home/dude/.node-red/settings.js
2 Apr 14:09:32 - [info] Context store : 'default' [module=memory]
2 Apr 14:09:32 - [info] User directory : /home/dude/.node-red
2 Apr 14:09:32 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Apr 14:09:32 - [info] Flows file : /home/dude/.node-red/flows.json
2 Apr 14:09:32 - [warn] Encrypted credentials not found
2 Apr 14:09:33 - [info] Server now running at http://127.0.0.1:1880/
2 Apr 14:09:33 - [info] Starting flows
2 Apr 14:09:33 - [info] [ui-base:My Dashboard] Node-RED Dashboard 2.0 (v1.22.1) started at /dashboard
2 Apr 14:09:33 - [info] [ui-base:My Dashboard] Created socket.io server bound to Node-RED port at path /dashboard/socket.io
2 Apr 14:09:33 - [error] [bme680rpi:7ee6176abf806608] TypeError: Bme680 is not a constructor
2 Apr 14:09:33 - [info] Started flows
2 Apr 14:09:33 - [info] [mqtt-broker:Localhost] Connected to broker: mqtt://localhost:1883

```

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [2 April 2025 20:17 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/5 "2025-04-02T20:17:42Z")

</div>

What pi os version did you install on the pi?

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [2 April 2025 20:24 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/6 "2025-04-02T20:24:35Z")

</div>

Both the old image that worked and the new one are both the current major release of Raspberry Pi os. The big difference is Node-RED v3 on the existing image and Node-RED v4 on the new image. I suspect this is what broke things.

It is unfortunate if node-red-contrib-bme680-rpi is not compatible with Node-RED v4 as it is the only node I can find that will read the Bosch BME 680 sensor. This is a pretty common sensor, I was surprised that this old node is the only one available.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [2 April 2025 20:57 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/7 "2025-04-02T20:57:53Z")

</div>

You can easily confirm that it is node-red v4 that is the problem. Run this to return to NR 3.1.15

`sudo npm install -g --unsafe-perm node-red@3.1.15`

Then restart node-red using `node-red-stop; node-red-start`, check that it is using that version and see if you still get the error.

To return to the latest version:  
`sudo npm install -g --unsafe-perm node-red@latest`  
and restart node-red.

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [2 April 2025 21:34 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/8 "2025-04-02T21:34:23Z")

</div>

Ok, it doesn't seem to be NR 4 causing the problem. I'm getting the same error in NR 3.1.15.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [2 April 2025 22:13 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/9 "2025-04-02T22:13:57Z")

</div>

This contribution timed out.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 April 2025 06:14 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/10 "2025-04-03T06:14:16Z")

</div>

> [@WalterJ](#):
>
> it doesn't seem to be NR 4 causing the problem.

Check the version of nodejs used on the two systems. That is more likely to be the issue I think. Use `node -v` to check, or look at the node red startup log.

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [3 April 2025 19:46 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/11 "2025-04-03T19:46:43Z")

</div>

I can see the sensor with i2cdetect on address 77. So it is wired correctly and i2c communication is working.

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [3 April 2025 20:04 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/12 "2025-04-03T20:04:25Z")

</div>

That seems very reasonable that it would be the nodejs version.  
node v18.20.6 \<- works  
node v20.19.0 \<- fails

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 April 2025 20:44 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/13 "2025-04-03T20:44:14Z")

</div>

Have you confirmed that your new system works if you drop the nodejs version? You can run the install script with `--node18` on the end to do that. If so then I suggest submitting an issue against the node, though whether it will get addressed is another issue.  
This is a very common problem with nodes that are not maintained. Eventually a change in nodejs breaks it.

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [3 April 2025 20:56 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/14 "2025-04-03T20:56:05Z")

</div>

Unfortunately at this point I need to move on. I'll work around it.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 April 2025 21:05 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/15 "2025-04-03T21:05:10Z")

</div>

I don't understand, do you mean that you haven't tested it with nodejs 18, but you can somehow work around it even though you get the error?

---

<div class="post-metadata">

### Author: ![WalterJ](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@WalterJ](https://discourse.nodered.org/u/WalterJ)
#### Post date: [3 April 2025 21:28 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/16 "2025-04-03T21:28:24Z")

</div>

I've spent all the time I have for this. I will read the sensor outside Node-RED. Maybe later I can get back to this and confirm it and report it to the author of the node.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [2 July 2025 21:29 UTC](https://discourse.nodered.org/t/bme680-node-producing-no-data/96384/17 "2025-07-02T21:29:11Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
