# Acces sensors value from mangOH Red

**URL:** <https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535>\
**Category:** Uncategorized\
**Created:** [October 29, 2020, 11:31am UTC](https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535 "2020-10-29T11:31:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastienmaviel](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sebastienmaviel](https://mangoh.discourse.group/u/sebastienmaviel)\
**Post date:** [October 29, 2020, 11:32am UTC](https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535/1 "2020-10-29T11:32:00Z")

</div>

Hello,

I have a mangOH-red board, with WP7702 module.  
I would like to access the value of my gyroscope sensor (for then push it on a Cloud).  
By checking the RedSensorToCloud, I saw that the value could be read through this path:  
_/sys/bus/i2c/devices/4-0068/iio:device0/in\_accel\_x\_raw_

However, it looks like this does not exist in my system:  
root@swi-mdm9x28-wp:/sys/bus/i2c/devices# ls -al  
drwxr-xr-x 2 root root 0 Jan 6 00:57 .  
drwxr-xr-x 4 root root 0 Jan 6 00:57 …  
lrwxrwxrwx 1 root root 0 Jan 6 00:58 4-001a -\> …/…/…/devices/78b8000.i2c/i2c-4/4-001a  
lrwxrwxrwx 1 root root 0 Jan 6 00:58 4-003a -\> …/…/…/devices/78b8000.i2c/i2c-4/4-003a  
lrwxrwxrwx 1 root root 0 Jan 6 00:58 i2c-4 -\> …/…/…/devices/78b8000.i2c/i2c-4

My firmware version:  
_SWI9X06Y\_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21_  
My legato version:  
19.11.3.rc2\_2f8818f062098020083ce89e8c5c3272

Do you have any ideas where I can find documentation to know how to access those info for this sensor and any another sensors ?

Any tips would be appreciated, thanks !

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 29, 2020, 1:14pm UTC](https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535/2 "2020-10-29T13:14:08Z")

</div>

Did you switch on the switch 3 of sw401?  
Did you compile the mangoh source?

> **[mangOH/mangOH](https://github.com/mangOH/mangOH)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![sebastienmaviel](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sebastienmaviel](https://mangoh.discourse.group/u/sebastienmaviel)\
**Post date:** [October 29, 2020, 1:51pm UTC](https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535/3 "2020-10-29T13:51:31Z")

</div>

Thanks for your answer.

The switch 3 is on.  
I did not had to setup the toolchain manually on my Linux because I went for VSCode. I succeed to update/push new firmware to my board with it.

Do you think the issue might come from VSCode ?

---

<div class="post-metadata">

**Author:** ![sebastienmaviel](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sebastienmaviel](https://mangoh.discourse.group/u/sebastienmaviel)\
**Post date:** [October 29, 2020, 2:09pm UTC](https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535/4 "2020-10-29T14:09:43Z")

</div>

Ok, I think I see why I do not have those paths.  
The “default.sdef” used in the basic system definition generated by VSCode does not include all the drivers right ?  
I am cloning the mangOH source and will push it to my board.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 29, 2020, 2:31pm UTC](https://mangoh.discourse.group/t/acces-sensors-value-from-mangoh-red/5535/5 "2020-10-29T14:31:14Z")

</div>

Correct, you need to compile mangoh source
