# Open Source EMERGENCY Based Ventilator -sensor integration

**URL:** <https://forum.xod.io/t/open-source-emergency-based-ventilator-sensor-integration/4406>\
**Category:** XOD Programming Questions\
**Created:** [September 5, 2020, 10:06pm UTC](https://forum.xod.io/t/open-source-emergency-based-ventilator-sensor-integration/4406 "2020-09-05T22:06:07Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![fantasydoom](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/fantasydoom/32/3729_2.png) [@fantasydoom](https://forum.xod.io/u/fantasydoom)\
**Post date:** [September 18, 2020, 8:49pm UTC](https://forum.xod.io/t/open-source-emergency-based-ventilator-sensor-integration/4406/21 "2020-09-18T20:49:27Z")

</div>

Dear wayland can you please add (flowErrorSLM) input like the scale factor ?

float flow = ((float(result) - sensirion3300Offset) / scaleFactor)- flowErrorSLM

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [September 19, 2020, 8:48am UTC](https://forum.xod.io/t/open-source-emergency-based-ventilator-sensor-integration/4406/22 "2020-09-19T08:48:03Z")

</div>

I’ve added a **flow error** input ( **FErr** ).

In your screenshot above the **T\_raw** output from **read-flow-temp** looks like an error - I’ll check my code. The negative value from **SLM** indicates an expiratory flow (inspiratory flows are positive).

You asked about learning resources. If you haven’t done so already, I’d recommend working through the XOD tutorial ([https://xod.io/docs/tutorial/](https://xod.io/docs/tutorial/)) and guide ([https://xod.io/docs/guide/](https://xod.io/docs/guide/)). In particular, the traffic light example ([https://xod.io/docs/guide/simple-traffic-light/](https://xod.io/docs/guide/simple-traffic-light/)) will show you how to handle different states, something that may be relevant to your project.

The following article should help you get up to speed with the **pid-controller** :

> **[How to program hand following mBot with XOD PID-controller](https://medium.com/xodlang/how-to-program-mbot-with-xod-pid-controller-c3e310f8eceb)**
>
> Today we are going to become familiar with a pid-controller node while working in the XOD platform. A proportional–integral–derivative…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [September 21, 2020, 9:01pm UTC](https://forum.xod.io/t/open-source-emergency-based-ventilator-sensor-integration/4406/23 "2020-09-21T21:01:30Z")

</div>

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

[Previous page](https://forum.xod.io/t/open-source-emergency-based-ventilator-sensor-integration/4406.md?page=1)
