# Problem with reading data from UART

**URL:** <https://forum.arduino.cc/t/problem-with-reading-data-from-uart/362685>\
**Category:** Networking, Protocols, and Devices\
**Created:** [February 2, 2016, 11:13am UTC](https://forum.arduino.cc/t/problem-with-reading-data-from-uart/362685 "2016-02-02T11:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammedashraf](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/muhammedashraf/32/1168866_2.png) [@muhammedashraf](https://forum.arduino.cc/u/muhammedashraf)\
**Post date:** [February 2, 2016, 11:13am UTC](https://forum.arduino.cc/t/problem-with-reading-data-from-uart/362685/1 "2016-02-02T11:13:55Z")

</div>

hello guys  
i have a problem with UART i am trying to send commands to fingerprint sensor and it works well  
but when i receive data from it , a problem appeared here , it sends 24 bytes so i tried to store them in an array like this

```cpp
if(Serial.available() < 24)
  {
    Serial.println("Didn't Recieve the  24 bytes ");
  }
  else 
  {
        for(k=0 ; k<24 ; k++)
          RecieveArray[k] = Serial.read();
         

      char store = RecieveArray[3];

     
        Serial.println(store);

```

am trying to print the element number 3 of the array to see if it works or not but i receive this

please help and thanks in advance

---

<div class="post-metadata">

**Author:** ![MorganS](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/morgans/32/218718_2.png) [@MorganS](https://forum.arduino.cc/u/MorganS)\
**Post date:** [February 2, 2016, 9:56pm UTC](https://forum.arduino.cc/t/problem-with-reading-data-from-uart/362685/2 "2016-02-02T21:56:25Z")

</div>

We need to see the rest of the code. Declaration, setup and everything.

How are you expecting the fingerprint sensor to transmit into a pin which is already in use by the serial monitor? Usually you would put the sensor on SoftwareSerial or use a Micro or Teensy that has more serial ports.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 10:58am UTC](https://forum.arduino.cc/t/problem-with-reading-data-from-uart/362685/3 "2021-05-06T10:58:32Z")

</div>

Closed on May 6, 2021, 10:58am UTC


