# Get sensor data

**URL:** <https://discourse.nodered.org/t/get-sensor-data/43857>\
**Category:** General\
**Created:** [8 April 2021 11:30 UTC](https://discourse.nodered.org/t/get-sensor-data/43857 "2021-04-08T11:30:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fernando](https://discourse.nodered.org/u/fernando)\
**Post date:** [8 April 2021 11:30 UTC](https://discourse.nodered.org/t/get-sensor-data/43857/1 "2021-04-08T11:30:12Z")

</div>

Hi, I'm new in Node-RED and I don't know how get data from 2 sensors.  
The model of sensors is pkth100b cz1 and they use tty USB (serial port I think).  
I'm stuck on this problem for 2 weeks, all I want is get data from sensor and save it in a database (MariaDB).  
I know how to save data in MariaDB but I can't get data from sensors.  
I would like to solve this problem.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 April 2021 11:34 UTC](https://discourse.nodered.org/t/get-sensor-data/43857/2 "2021-04-08T11:34:58Z")

</div>

According to [this](https://hallroad.org/high-precision-rs485-modbus-rtu-temperature-and-humidity-sensor-transmitter-in-pakistan.html) it has an rs485 connection and supports modbus RTU.

Is your USB device an RS 485 SERIAL port?

As for modbus, there are hundreds of examples on the forum (search).

---

<div class="post-metadata">

**Author:** ![fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fernando](https://discourse.nodered.org/u/fernando)\
**Post date:** [8 April 2021 11:38 UTC](https://discourse.nodered.org/t/get-sensor-data/43857/3 "2021-04-08T11:38:29Z")

</div>

Yes, It is.  
Sensor are configured to work in another raspberry with antoher database but I'm configuring it in a new raspberry from zero to save data in MariaDB

---

<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:** [7 June 2021 11:38 UTC](https://discourse.nodered.org/t/get-sensor-data/43857/4 "2021-06-07T11:38:38Z")

</div>

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