# \[Solved\]Node-red-contrib-bme280-rpi

**URL:** <https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761>\
**Category:** General\
**Created:** [21 September 2019 22:44 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761 "2019-09-21T22:44:21Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [21 September 2019 22:44 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/1 "2019-09-21T22:44:21Z")

</div>

I am trying to use the "node-red-contrib-bme280-rpi" to read a BME-280 pressure / temperature sensor using the I2C bus of a Rasberry PI.

The node appears to connect to the sensor. I did verify the sensor i.d. and its the same as showing on the Node-Red node.

Problem is, there is no data coming out of the node-red-contrib-bme280-rpi node???

Documentation is very skimpy.

Have others used this device and could you share with me the details for making it work?

Alan

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [21 September 2019 23:51 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/2 "2019-09-21T23:51:55Z")

</div>

Did you follow the instructions ? Did you restart node-red after installation of the node ?

> **[node-red-contrib-bme280](https://flows.nodered.org/node/node-red-contrib-bme280)**
>
> Node for BME280/BMP280 sensors for SBCs gpios

ie. permissions

and what does your flow look like ?  
node-red,npm and node js version?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 September 2019 00:29 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/3 "2019-09-22T00:29:41Z")

</div>

> [@n61ab](#):
>
> Have others used this device and could you share with me the details for making it work?

As has been mentioned before, I'm not sure many people actually connect sensors direct to their Pi's. It generally seems much easier and more reliable to connect sensors to Arduino's or ESP8266/ESP32 devices.

Certainly I've used the BME-280 quite happily on an Arduino and more recently on the ESP8266. It is a good device and works well.

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [22 September 2019 14:27 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/4 "2019-09-22T14:27:02Z")

</div>

bakman2

Thank - you for the reply

Yes, restarted and rebooted several times.

Screenshots attached:

I2C buss scan

Node Setup

Flow showing debug window (no output from the node)

Alan

 ![Buss Scan.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/accf67cbf07d73f7368c49bf44b6215fa5158c9a.png)

 ![Output.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7c6c84b02657523e7a1ad313e925930932279201.png)

 ![Flpw.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/334312fcaa5692d65d38909030ebbd0a48571750.png)

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [22 September 2019 17:50 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/5 "2019-09-22T17:50:26Z")

</div>

Udate - Still Need Help

I noticed that bakman2 referenced a different node, node-red-contrip-bme28, so I gave this one a try:

First I followed the instructions to create a software based I2C bus. I completed those steps and rebooted, moved my clock and data to pins 23 and 24 then scanned the new bus 3. My sensor showed up at #77.

Added a trigger and output to the BME Node, still no output??

Screenshots attached:

I2C Bus Scan  
Trigger Configuration  
BME280 Node Configuration.

Alan ![BME280%20Configuration](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/13bd9ac972e54722a9355957203be5b05131a36b.png) ![Trigger%20Configuration](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/42e4c38651334cf07be059d0602da57c8b080360.png) ![I2C%20Bus%203%20Scan](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b823f540f9dab450c63816d743d38c45e707ff71.png)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [22 September 2019 17:56 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/6 "2019-09-22T17:56:22Z")

</div>

Your screenshot shows “muted” debug nodes?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [22 September 2019 17:57 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/7 "2019-09-22T17:57:06Z")

</div>

and also bus number 7 rather than 3

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [22 September 2019 22:14 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/8 "2019-09-22T22:14:54Z")

</div>

ukmoose and bakman2

Thanks. Making progress.

Now, I get this message in the alarm panel:

"Sensor Init failed -\>Error: ENOENT: no such file or directory, open '/dev/i2c-7'"

I went over the install instructions but couldn't find a reference to adding this file. Obviously I missed a step.

Help.

Alan

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [22 September 2019 22:17 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/9 "2019-09-22T22:17:23Z")

</div>

I followed these instructions to set up the software I2C bus as required by the Node install instructions:

> <https://github.com/fivdi/i2c-bus/blob/master/doc/raspberry-pi-software-i2c.md>

Alan

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [22 September 2019 23:16 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/10 "2019-09-22T23:16:51Z")

</div>

try `ls -l /dev/i2c*`

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [23 September 2019 00:02 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/11 "2019-09-23T00:02:35Z")

</div>

Thanks, bakman for the help.

Ran the command, see the attached screenshot from the terminal.

Rebooted.

Continue to get the error message:

Sensor Init failed -\>Error: ENOENT: no such file or directory, open '/dev/i2c-7

Alan

 ![new%20file](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e2210458fad1c4ab596ae3911bedabf1a56c41f9.png)

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [23 September 2019 00:05 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/12 "2019-09-23T00:05:47Z")

</div>

Looks like we installed -1 and -3. Do the same for -7?

Alan

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [23 September 2019 00:25 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/13 "2019-09-23T00:25:13Z")

</div>

See attached screenshot of dev file contents. I can see that it has i2c-1 and i2c-3. How do I add i2c-7?

Alan

 ![dev](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7c281283dc608ee45cbc079e41591bbe3db9fc9a.png)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [23 September 2019 06:03 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/14 "2019-09-23T06:03:00Z")

</div>

Looking at [https://www.npmjs.com/package/bme280-sensor](https://www.npmjs.com/package/bme280-sensor)  
Which is the underlaying code for the sensor, they use i2c-1 in their examples.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [23 September 2019 07:07 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/15 "2019-09-23T07:07:37Z")

</div>

I'm not sure you need to add bus -7

You searched and found the sensor using  
`i2cdetect -y 3`

but in the nodes config' you have entered `Buss #` `7` rather than 3

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [23 September 2019 18:55 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/16 "2019-09-23T18:55:36Z")

</div>

Followed those instructions. Moved the sensor back to bus 1. Rebooted. Now get this error message:

"Sensor Init failed -\>Error: , Remote I/O error"

So.... a new genuine Adafruit BME280 sensor is arriving tomorrow. I will update the group after I try again, with a new sensor.

Alan

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [24 September 2019 19:53 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/17 "2019-09-24T19:53:12Z")

</div>

Thanks bakman and ukmoose.

Success!

Installed a new BME280 sensor from AdaFruit, installed on I2C-1, rebooted.....and it worked!

Alan

---

<div class="post-metadata">

**Author:** ![n61ab](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@n61ab](https://discourse.nodered.org/u/n61ab)\
**Post date:** [25 September 2019 00:58 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/18 "2019-09-25T00:58:59Z")

</div>

How do I mark this "solved"??

Alan

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 September 2019 05:55 UTC](https://discourse.nodered.org/t/solved-node-red-contrib-bme280-rpi/15761/19 "2019-09-25T05:55:56Z")

</div>

If the option isn't available to you in the controls (...) for a reply, just edit the title and put "[Solved] " at the start.
