# Help with an i2c issue Sensor Init failed -\>Error: EACCES: permission denied, open '/dev/i2c-1'

**URL:** https://dietpi.com/forum/t/help-with-an-i2c-issue-sensor-init-failed-error-eacces-permission-denied-open-dev-i2c-1/3610
**Category:** Troubleshooting
**Created:** [21 November 2019 22:17 UTC](https://dietpi.com/forum/t/help-with-an-i2c-issue-sensor-init-failed-error-eacces-permission-denied-open-dev-i2c-1/3610 "2019-11-21T22:17:09Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![NastySpill](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/n/a4c791/32.png) [@NastySpill](https://dietpi.com/forum/u/NastySpill)
#### Post date: [21 November 2019 22:17 UTC](https://dietpi.com/forum/t/help-with-an-i2c-issue-sensor-init-failed-error-eacces-permission-denied-open-dev-i2c-1/3610/1 "2019-11-21T22:17:09Z")

</div>

Hi All,  
I’m a newbie in Dietpi and the linux environment. I am persisting through a few configuration issues to learn this world as its blown me away with the possibilities and level of development.  
So… I am trying to get a BME280 sensor working in Node-Red on Raspi W Zero. But have what appears to be a user permission error in node red debug terminal;

```nohighlight
'Sensor Init failed ->Error: EACCES: permission denied, open '/dev/i2c-1'

```

The reason I am posting in the Dietpi forum is that I had this exact issue;  
[https://www.raspberrypi.org/forums/viewtopic.php?t=228084](https://www.raspberrypi.org/forums/viewtopic.php?t=228084) which may be a bug in the Dietpi…??

And now my i2c device appears on bus 1 0x077 when viewed with i2ctools.

```nohighlight
root@DietPi:~# root@DietPi:~# i2cdetect -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: -- -- -- -- -- -- -- 77
root@DietPi:~#

```

But after numerous restarts I still get this error in node red.

```nohighlight
'Sensor Init failed ->Error: EACCES: permission denied, open '/dev/i2c-1'

```

I have read through a few forums that have got me very close but I think my issue is a permission… [The node’s page](https://www.npmjs.com/package/node-red-contrib-bme280) suggests I look at [this page](https://github.com/fivdi/i2c-bus) to configure i2c access, but I can’t see any information, at least it’s not near the surface…  
This is the contents of my rules file;

(sudo nano /lib/udev/rules.d/60-i2c-tools.rules)

```nohighlight
SUBSYSTEM=="i2c-dev",
KERNEL=='i2c-0" , GROUP="i2c", MODE='0666"
KERNEL=='i2c-[1-9]*" , GROUP="i2c", MODE='0666"

```

Is 666 even correct?

I’m unsure where to look next. Any ideas would be appreciated.

---

_[View the full topic](https://dietpi.com/forum/t/help-with-an-i2c-issue-sensor-init-failed-error-eacces-permission-denied-open-dev-i2c-1/3610)._
