# How to show arduino values in nodered on rapsi

**URL:** <https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798>\
**Category:** Dashboard\
**Created:** [17 May 2020 14:28 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798 "2020-05-17T14:28:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoernsenDon1](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@BoernsenDon1](https://discourse.nodered.org/u/BoernsenDon1)\
**Post date:** [17 May 2020 14:28 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/1 "2020-05-17T14:28:30Z")

</div>

Hello,

i have a question, i dont understand how to send the arudino values (temperature, pressure...) to the raspi.  
The raspi should show the values of the arduino in a dashboard.

```auto
#include <OneWire.h>

//DHT11
#include "DHT.h"
#define DHTPIN 11          
#define DHTTYPE DHT11     
DHT dht(DHTPIN, DHTTYPE);

//BMP280
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP280.h>
Adafruit_BMP280 bmp;

//DS18B20
#include <OneWire.h> 
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 2 
 
OneWire oneWire(ONE_WIRE_BUS); 

DallasTemperature sensors(&oneWire);

void setup() {
  Serial.begin(9600);
  //DHT11
  dht.begin();

  //BMP280
  if (!bmp.begin(0x76)) {
  Serial.println(F("Could not find a valid BMP280 sensor, check wiring!"));
  while (1);

  //DS18B20
  sensors.begin();
}
}

void loop() {

  //DHT11
  
  delay(2000);                     
  float h = dht.readHumidity();    
  float t = dht.readTemperature(); 
  if (isnan(h) || isnan(t)) {
    Serial.println("Fehler beim auslesen des Sensors DHT11!");
    return;
  }
  Serial.print("Luftfeuchtigkeit: ");
  Serial.println(h);
  Serial.print("Temperatur: ");
  Serial.print(t);
  Serial.println("°C");

  //BMP280
  Serial.print(F("Pressure = "));
  Serial.print(bmp.readPressure());
  Serial.println(" Pa");

  //DS18B20
   sensors.requestTemperatures(); // 
   Serial.print("Wasser Temperatur: "); 
   Serial.print(sensors.getTempCByIndex(0));
  Serial.println();
  Serial.println();

  
  delay(2000);
}

thx for any help

```

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [17 May 2020 14:47 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/2 "2020-05-17T14:47:58Z")

</div>

Does the Arduino have WiFi?

---

<div class="post-metadata">

**Author:** ![BoernsenDon1](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@BoernsenDon1](https://discourse.nodered.org/u/BoernsenDon1)\
**Post date:** [17 May 2020 14:49 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/3 "2020-05-17T14:49:21Z")

</div>

hi, no 🙂

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [17 May 2020 15:25 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/4 "2020-05-17T15:25:14Z")

</div>

Then you can only send data to the Pi over your serial port, shouldn't be too difficult. There is also a node to use firmata:

> **[node-red-node-arduino](https://flows.nodered.org/node/node-red-node-arduino)**
>
> A Node-RED node to talk to an Arduino running firmata

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [17 May 2020 15:49 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/5 "2020-05-17T15:49:02Z")

</div>

For things like sensors just use serial. The firmata node is really just for simple pin io

---

<div class="post-metadata">

**Author:** ![happytm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/happytm/32/7058_2.png) [@happytm](https://discourse.nodered.org/u/happytm)\
**Post date:** [17 May 2020 16:53 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/6 "2020-05-17T16:53:20Z")

</div>

There is another easy alternative called RPIEasy. It is full framework covering lot of different sensors via plugins. In your case you can activate plugins for whatever sensors you have attached to your hardware plus there are one of few plugins for communication.based on either serial, Bluetooth, I2C, Lora, IR, or RF.You can choose one of them by just clicking on GUI. It can take only few minutes to setup whole system without knowing any code or programming.It has powerful rules engine to automate whole system using GUI. You do not have to even use arduino if you want to use Raspi for all your sensors including analog sensors with help of plugins for ADC chips. Link for repo is below:

> **[enesbcs/rpieasy](https://github.com/enesbcs/rpieasy)**
>
> Easy MultiSensor device based on Raspberry PI. Contribute to enesbcs/rpieasy development by creating an account on GitHub.

On arduino you can use compatible ESPEasy framework or just following code listed below:

> **[letscontrolit/ESPEasy](https://github.com/letscontrolit/ESPEasy)**
>
> Easy MultiSensor device based on ESP8266. Contribute to letscontrolit/ESPEasy development by creating an account on GitHub.

  

> **[enesbcs/ESPEasySlaves](https://github.com/enesbcs/ESPEasySlaves)**
>
> Arduino (AVR/ATTiny) based slave projects for ESP Easy - enesbcs/ESPEasySlaves

Thanks.

---

<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:** [16 June 2020 16:53 UTC](https://discourse.nodered.org/t/how-to-show-arduino-values-in-nodered-on-rapsi/26798/7 "2020-06-16T16:53:20Z")

</div>

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